Results 1 to 4 of 4

Thread: Import sql file in mysql

  1. #1
    Join Date
    Apr 2009
    Posts
    87

    Import sql file in mysql

    I have created database named employee database and i want to import MySQL dumpfile into my employee database? what are the syntax used while importing file. Any recommendations and suggestions are appreciated.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Import sql file in mysql

    Import the dump file into MySQL by typing all the following on 1 single line at the shell prompt: mysql -p -h DBSERVER dbname < employee.sql The above assumes that your database name on our system is "dbname" and the dumpfile that you uploaded was named "employee.sql".

  3. #3
    Join Date
    Jan 2009
    Posts
    199

    Re: Import sql file in mysql

    You can easily restore or import MySQL data with mysql command itself. The easiest way is to split the original sql file into manageable blocks... a separate file for each table maybe since your data base is so large. You can do this manually from the file that you already have... or export the original sql in blocks as separate files.

  4. #4
    Join Date
    Dec 2008
    Posts
    177

    Re: Import sql file in mysql

    Using the phpMyAdmin authoring tool you can easily import/add an existing database to your current database. If the .sql file that you are attempting to import is too large, the import via phpMyAdmin may timeout in your browser. An alternative way to import your .sql file is to run the import command via a SSH session. The only restriction is that this file has to be of either .SQL or .PHP type. If your database file is of a different type, you will need first to convert it before importing to phpMyAdmin.

Similar Threads

  1. mysql config file in MySQL
    By Netorious in forum Software Development
    Replies: 4
    Last Post: 18-03-2010, 09:43 PM
  2. Navicat : Import Data into MySQL
    By Martien in forum Windows Software
    Replies: 4
    Last Post: 22-01-2010, 12:56 PM
  3. Replies: 3
    Last Post: 07-11-2009, 09:36 PM
  4. How to import mysql database into sharepoint
    By RasMus in forum Windows Software
    Replies: 3
    Last Post: 11-06-2009, 01:41 PM
  5. Import txt file to mysql
    By Holt in forum Software Development
    Replies: 2
    Last Post: 21-04-2009, 11:48 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,052,732.33307 seconds with 17 queries