frenchpl Posted January 24, 2017 Share Posted January 24, 2017 Can someone assist me please.I am trying to shift my mysql database from windows xp to centos 6.On the windows I am runningmysql 5.0.83 and using administrator 1.2.17However on the linux I am runningmysql 5.1.83 and trying to use workbench 6.3I have backed up my database using the administratorThis created a windows Backup.sql file.Trying to transfer this to linux and then restore it will not work.The workbench just will not see the file even if I rename it.My next trial was to open the backup file with Kwrite and then to copyand paste the content directly into a mysql terminal.This was successful on creating no only the database but all the tables.However the data for the tables was a different story.If there was a very limited number of rows of data it workedAnything over 10 rows gives me a mysql syntax error.Is there a way around this other thantrying to edit a file with thousands of rows of data.I know there is a difference in the mysql proc table column numbersfrom 16 in the older version to 20 in the newer but Ido not think that should make a difference here. Quote Link to comment Share on other sites More sharing options...
kicken Posted January 24, 2017 Share Posted January 24, 2017 You can feed a .sql file as standard input to the mysql command line tool and it will execute all the statements. mysql -u username -p < Backup.sql Quote Link to comment Share on other sites More sharing options...
frenchpl Posted January 25, 2017 Author Share Posted January 25, 2017 Thank you Kicken that worked just fine Now I have another configuration problem I have to solve. My firefox will not connect to the mysql. Reading the error logs I find that it is trying to connect via /var/lib/mysql/mysql.sock and cannot find it The correct location is of course /var/lib/mysqld/mysql.sock There is obviously a configuration file somewhere that is using the wrong info, however I cannot find it. /etc/my.cnf is correct as is /etc/php.ini I checked the /etc/httpd content and that seemed OK too. Obviously I am missing one somewhere but where?? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.