473,397 Members | 2,077 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

startup script problem


Hi,

I'm using mysql-server-3.23.58-4 on a Linux (Fedora 1) machine.

After reading the security section of the manual from
http://dev.mysql.com, I added passwords for the 'root' accounts.

However, now the startup script (/etc/rc.d/init.d/mysqld) fails.

I tried adding:

[mysql.server]
password=xxx

into /etc/my.cnf

but it did not help.

How/where do I set the password to for the startup script to allow
it to run OK ?

Thanks,
John.

Jul 23 '05 #1
8 1565
John wrote:
How/where do I set the password to for the startup script to allow
it to run OK ?


I don't know what you are doing, but I have never set any passwords for
the startup scripts. The root password needs to be used only when you
want to login into mysql as root.
Jul 23 '05 #2
Aggro wrote:
John wrote:
How/where do I set the password to for the startup script to allow
it to run OK ?

I don't know what you are doing, but I have never set any passwords for
the startup scripts. The root password needs to be used only when you
want to login into mysql as root.


I'll post '/etc/rc.d/init.d/mysqld' if that will help, but as I have
not altered it, it should be very stanard stuff.

So why would setting a password for the root accounts cause that script
to fail ?

If it helps ?

mysql> SELECT Host, User FROM mysql.user;
+-----------+----------+
| Host | User |
+-----------+----------+
| grommet | root |
| localhost | root |
+-----------+----------+

Thanks,
John.

Jul 23 '05 #3
John wrote:
So why would setting a password for the root accounts cause that script
to fail ?


How exactly did you set the root password?
Jul 23 '05 #4
Aggro wrote:
John wrote:
So why would setting a password for the root accounts cause that script
to fail ?

How exactly did you set the root password?


Either:

shell> mysql -u root
mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpwd');
mysql> SET PASSWORD FOR 'root'@'grommet' = PASSWORD('newpwd');
mysql> FLUSH PRIVILEGES;
mysql> exit

or:

shell> mysqladmin -u root password "newpwd"
shell> mysqladmin -u root -h host_name password "newpwd"
Would it make a difference ?

Thanks,
John.

Jul 23 '05 #5
John wrote:
Would it make a difference ?


Sorry, I have no idea why setting the password could cause the script to
fail. I have set the password for root on both Windows and Linux
machines and I have never experienced problems with the startup script.
I have also never edited my.cnf for that matter. "set password" from
mysql console has always done the trick.

Only things that come to my mind that you could try are:
- Reset the root password back to empty and see if it works
- Backup your tables, uninstall mysql and then reinstall it
Jul 23 '05 #6
I think there is another couse why the script does not work. Did it
start working after removing passwords? what error messages do you
get?

Also have a look in the error log (usually in
/var/lib/mysql/[SERVERNAME].err)..

//Jesper
John <jo********@mini-net.co.uk> wrote in message news:<11*************@corp.supernews.com>...
Hi,

I'm using mysql-server-3.23.58-4 on a Linux (Fedora 1) machine.

After reading the security section of the manual from
http://dev.mysql.com, I added passwords for the 'root' accounts.

However, now the startup script (/etc/rc.d/init.d/mysqld) fails.

I tried adding:

[mysql.server]
password=xxx

into /etc/my.cnf

but it did not help.

How/where do I set the password to for the startup script to allow
it to run OK ?

Thanks,
John.

Jul 23 '05 #7
Jesper,

Yes, it starts up fine without passwords - always has.

I don't have any error file in /var/lib/mysql/ - only the data bases.

The only error I can see is in /var/log/messages:

mysqld: Starting MySQL: failed

which does not help much (I know).
Thanks,
John.
Jesper wrote:
I think there is another couse why the script does not work. Did it
start working after removing passwords? what error messages do you
get?

Also have a look in the error log (usually in
/var/lib/mysql/[SERVERNAME].err)..

//Jesper
John <jo********@mini-net.co.uk> wrote in message news:<11*************@corp.supernews.com>...
Hi,

I'm using mysql-server-3.23.58-4 on a Linux (Fedora 1) machine.

After reading the security section of the manual from
http://dev.mysql.com, I added passwords for the 'root' accounts.

However, now the startup script (/etc/rc.d/init.d/mysqld) fails.

I tried adding:

[mysql.server]
password=xxx

into /etc/my.cnf

but it did not help.

How/where do I set the password to for the startup script to allow
it to run OK ?

Thanks,
John.


Jul 23 '05 #8
John wrote:
The only error I can see is in /var/log/messages:


I got the mysql.err file at (only root is allowed to read it in my system):

/var/log/mysql/mysql.err

You could also try to search for filenames called mysql.err, if you
can't find it from there.
Jul 23 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Lynn | last post by:
I'm running Oracle 8.1.7.4.1 on W2K and have the services for my oracle instances set to automatically startup and shutdown with the W2K server. Unfortunately, neither is working. Nothing gets...
0
by: Duane Winner | last post by:
Hello all - I'm having a small problem with the mysql startup script that ships with MySQL-3.23.56-1. I'm running on RedHat Linux. It works fine, but I have a backup server that runs a script...
4
by: Jesper | last post by:
Hi, I would like to issue three statements to the database (mysql v4.1) each time the server starts up. Is there any built in way to do this? Like a init file to put them in? At the moment I...
9
by: Harry Smith | last post by:
While reading the documentation on IsStartupScriptRegistered, there is a reference to "client startup script" as "Determines if the client startup script is registered with the Page object." What...
0
by: Stuart Shay | last post by:
Hello All: I am having problem with the getting the Follow JS to run on Startup, the Script gets the client UTC Offset Time it seems the script seems to post back private string...
0
by: Sim Zacks | last post by:
I reconfigured the redhat startup script for postgresql to work with version 8 and that is working fine. I thought I could put autovacuum in the startup script and that didn't cause any problems,...
0
by: Dhanashree | last post by:
I have a RangeValidator which uses AJAX to call server-side validation function from the client. The code works fine, but I have one problem. following is my range validator class: public...
3
by: MrDeej | last post by:
Hello! I am trying to make a startup script which selects a predefined TAB page from a form at startup. This is how i want it to be: I have a table which contains user-data. In this i have a...
3
by: traceable1 | last post by:
Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 thanks!
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.