Code:
mysql databasename -u username -p < backup.sql
Thank you.
It worked.
One more quetion though
How do see log files in mysql?
Myqls reference say start mysqld with --log filename
I did
Code:
# service mysqld --log /root/log start
Usage: /etc/init.d/mysqld {start|stop|status|condrestart|restart}
===================================================
[root@super ~]# service mysqld --log [root/log] start
Usage: /etc/init.d/mysqld {start|stop|status|condrestart|restart}
===================================================
[root@super ~]# service mysqld --log=root/log start
Usage: /etc/init.d/mysqld {start|stop|status|condrestart|restart}
===================================================
[root@super ~]# service mysqld--log=root/log start
mysqld--log=root/log: unrecognized service
====================================================
[root@super ~]# service mysqld -l /root/log start
Usage: /etc/init.d/mysqld {start|stop|status|condrestart|restart}
====================================================
[root@super ~]# service mysqld -l /root/log condrestart
Usage: /etc/init.d/mysqld {start|stop|status|condrestart|restart}
[root@super ~]#
nothing worked.
Please suggest me a book or document about mysql administration.
I will greatly appreciate it.
I bought/read "high performance mysql" by Jeremy D. Zawodny (Author), Derek J. Balling. I now know how to optimize query etc.
But I still don't feel at home with mysql.