Steven Vona
asked on
Restoring a SQL database
I have a fellow co-worker who I have been helping out with some projects. I have setup and configured a cacti server for them using fedora, mysql, cacti, php5, etc...
It is all working well but now he wants me to use an old DB file he had saved from his last cacti server to restore to the new database. It is a six meg text file and phpMyAdmin will not let me import anything larger than 2.4 megs.
I know there has to be a way to restore this, can anyone help? I have very little mysql knowledge.
Thanks
It is all working well but now he wants me to use an old DB file he had saved from his last cacti server to restore to the new database. It is a six meg text file and phpMyAdmin will not let me import anything larger than 2.4 megs.
I know there has to be a way to restore this, can anyone help? I have very little mysql knowledge.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I used mysql -u root -p cacti < cacti_bu.sql
cacti being my database name and cacti_bu.sql being the backup file.