Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've installed MySQL-server-community-5.1.35-0.rhel5.x86_64.rpm, client and devel on my 64 bit server having CentOS 5.4 (Final) as operating system. Now when I setup my.cnf file and add an entry "init-file=/usr/src/script.sql" and restart Mysql service then Mysql fails to start but when I comment init-file portion in my.cnf file then mysql runs fine. Please find below log file entry in mysql log
100304 3:03:38 [ERROR] /usr/sbin/mysqld: File '/usr/src/scripts/startup.sql' not found (Errcode: 13)
100304 3:03:38 [ERROR] Aborting
I have verified that file exist on the location mentioned in my.cnf file. Can anybody please suggest fix of this problem.
Regards,
Zaeem
Last edited by zaeem; 03-04-2010 at 05:34 AM.
Reason: type mistake
I've installed MySQL-server-community-5.1.35-0.rhel5.x86_64.rpm, client and devel on my 64 bit server having CentOS 5.4 (Final) as operating system. Now when I setup my.cnf file and add an entry "init-file=/usr/src/script.sql" and restart Mysql service then Mysql fails to start but when I comment init-file portion in my.cnf file then mysql runs fine. Please find below log file entry in mysql log
100304 3:03:38 [ERROR] /usr/sbin/mysqld: File '/usr/src/scripts/startup.sql' not found (Errcode: 13)
100304 3:03:38 [ERROR] Aborting
I have verified that file exist on the location mentioned in my.cnf file. Can anybody please suggest fix of this problem.
# ls -l startup.sql
-rwxr-xr-x 1 root root 149 Mar 3 07:29 startup.sql
# file startup.sql
startup.sql: ASCII text, with CRLF line terminators
Now after giving chmod 755 to this file mysql restarting fine but this script (startup.sh) is not populating few tables as it should be.
Any suggestion ?
Regards,
and
Quote:
Anybody??
How about saying what, exactly is wrong? "not populating few tables", doesn't tell us anything. What are you expecting it to do? What are the contents of that sql file?
The UpdateRecord procedure basically picks the records from table and populate Memory tables. The purpose of this is that we always have record in memory after mysql restarts.
I hope it clarifies the issue. So please let me know if I am doing anything wrong?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.