Running Mysql Script

komputergeek

komputergeek

@komputergeek-Yf5hJ4 Oct 22, 2024
I am using mysql on ubuntu 8.04 LTS.I have a file with .sql extension.It has some queries for creating tables..How can I execute this script?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • komputergeek

    komputergeek

    @komputergeek-Yf5hJ4 Feb 19, 2009

    Finally I got the solution.I used this statement :
    mysql -u root -p dbname < filename.sql
  • shalini_goel14

    shalini_goel14

    @shalini-goel14-ASmC2J Feb 20, 2009

    komputergeek
    Finally I got the solution:
    Hey Well done komputergeek 😁