Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > MySQL Help

MySQL Help Post any question relating to MySQL here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-10-31, 08:30 PM
Junior Member
 
Join Date: Oct 2007
Posts: 9
tbarlow is on a distinguished road
Default Prob starting

Hello
I just installed (upgraded) to linux slackware 12.0, and I told mysql to startup on it own dureing startup, and when the system boots U can see it start mysql, but then the very last thing it does is STOP mysql, can someone tell my how to get it to start and stay started thanks.

tbarlow
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2007-11-02, 07:00 PM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

have you checked the system error log? or the mysql error log?
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
  #3 (permalink)  
Old 2007-11-04, 01:22 AM
Junior Member
 
Join Date: Oct 2007
Posts: 9
tbarlow is on a distinguished road
Default

Quote:
Originally Posted by Xnuiem View Post
have you checked the system error log? or the mysql error log?
ya and the weird thing is that in the /var/log dir there is not mysql log file or even in the syslog there is nothing said about mysql it just start and then the next line ends

tbarlow
Reply With Quote
  #4 (permalink)  
Old 2007-11-04, 05:50 AM
Junior Member
 
Join Date: Oct 2007
Posts: 9
tbarlow is on a distinguished road
Default

Well I got it to load at startup but now I have a new prob when I try to add a database I get this error

mysql> CREATE DATABASE eacentral;
ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'eacentral'
mysql>

also when I run this command like it says to do in the install info

/usr/bin/mysqladmin -u root -h enterprise password 'new-password'

I get this error

mysql@enterprise:/etc/rc.d$ /usr/bin/mysqladmin -u root -h enterprise password 'temp'
/usr/bin/mysqladmin: connect to server at 'enterprise' failed
error: 'Lost connection to MySQL server at 'reading initial communication packet', system error: 111'
mysql@enterprise:/etc/rc.d$


Can anyone help with this prob

tbarlow
Reply With Quote
  #5 (permalink)  
Old 2007-11-04, 09:46 PM
Junior Member
 
Join Date: Oct 2007
Posts: 9
tbarlow is on a distinguished road
Default Prob seting up

Hello

Well I got it to start and well here is where I am now

mysql@enterprise:~$ /usr/bin/mysqladmin -u root password 'mypwd'
mysql@enterprise:~$ /usr/bin/mysqladmin -u root -h enterprise password 'mypwd'
/usr/bin/mysqladmin: connect to server at 'enterprise' failed
error: 'Host 'enterprise.barlows1.net' is not allowed to connect to this MySQL server'
mysql@enterprise:~$

as U can see I ran the commands it told me to run but it is not working how can I fix this

tbarlow

P.S
should there be 2 mysql things running I did a px -ax and got this

2951 ? S 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/run/mysql/mys
2979 ? Sl 0:00 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file

thanks

tbarlow

Last edited by tbarlow; 2007-11-04 at 09:57 PM.
Reply With Quote
  #6 (permalink)  
Old 2007-11-05, 01:36 PM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

you dont need to type the path, /usr/bin will always be in your path.

your best bet, is to install phpmyadmin...it makes life so much easier.

Dont specify host if it is localhost, that will often confuse mysql.

what command were you using to create the database that returned that error?
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
  #7 (permalink)  
Old 2007-11-05, 01:37 PM
Xnuiem's Avatar
Senior Member
 
Join Date: May 2004
Location: DFW, Texas
Posts: 1,104
Xnuiem will become famous soon enough
Send a message via Yahoo to Xnuiem
Default

the two threads running isnt an issue, it is normal.

From the copy and paste, your first command worked. In UNIX no news is good news.

again, no need to type the path.

I am going to merge your threads.
__________________
I rarely give code examples.
No, I have never used IIS or Windows of any kind as a web server. Get a real OS!
Please don't PM me, I won't respond.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:53 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.