| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| New Member | importing data in MYsql am new a MYSQL. I have been using Access. Now, I am converting to MYSQL. I got a tool that takes a Access file and converts it to a dump file call "filename.sql" Now how do I import that into MYSQL? After logging into mysql what should I do next and what is the command to import this file? Also, I tried using PHPMYadmin. Because this is a huge file (50,000 records) it times out. So is there a way I can adjust the time so it doesn't time out. I want to learn how to do this both ways. via the command line and via phpmyadmin. thanx. Am example of the command line would be great. I log into mysql, I get this promt "MYSQL>" Now what do I type? My data file is located at "c:/data.sql"
__________________ "Knowledge Speaks and Wisdom Listens" |
| |
| | #5 (permalink) |
| Senior Member | It should be just the same. You can also do it without changing to the mysql directory: Code: c:pathtomysql -uSqlUser -p DBNAME < c:data.sql |
| |
| | #6 (permalink) |
| New Member | Just ot be clear. My MYSQL is running on a server. And my data file is located on my local machine. 1. I log into the server using telnet. 2. I am at the $ promt. 3. Type "mysql -uSqlUser -p DBNAME < c:data.sql" I don't need to ftp the data.sql file to the server first!
__________________ "Knowledge Speaks and Wisdom Listens" |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |