phpmyadmin - How to import MySQL 4 .dump file into MySQL 5? -
i have mysql 4 dump file named booster.dump 30mb in size. want import file mysql 5 server. try using phpmyadmin. doesn't upload. shows error:
size large
then have zip file named booster.zip , try upload again in phpmyadmin show error:
no data received import. either no file name submitted, or file size exceeded maximum size permitted php configuration
then open booster.dump file in notepad++ , copy text , make new file named booster.sql try upload booster.sql in phpmyadmin. shows error:
1064 - have error in sql syntax; check manual corresponds mysql server version right syntax use near 'type=myisam' @ line 8
i have change type=myisam engine=myisam , works fine. if go way need change every query painful.
my question is: there way import file mysql 5?
mysql 4 5
1. export database on system mysql 4: mysqldump -p --opt dbname >dbname.sql 2. copy database other sytem, example, scp dbname.sql me@domain.com:/home/me 3. import database on system mysql 5: mysqladmin -p drop dbname mysqladmin -p create dbname mysql -p -d dbname <dbname.sql update: 1
1.from command prompt go root of server
c:\program files\mysql\mysql server 5.0\bin> 2.load dumb file server using following command
bin>mysql -uroot -p<server_password> {database_name} < {complete filepath} example:bin>mysql -uroot -ppassword mydb < c:\users\anto\documents\db_dumb
Comments
Post a Comment