LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mysql and apache2 (https://www.linuxquestions.org/questions/linux-software-2/mysql-and-apache2-287104/)

compu73rg33k 02-06-2005 09:28 PM

mysql and apache2
 
For some reason msyql isn't working properly with apache2. When I go into /etc/init.d/ and type ./mysql restart it says

Starting MySQL database server: mysqld
Checking for crashed MySQL tables in teh background.
Suzzy:/etc/init.d# /usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user: 'debian-sys-maint@localhost' (Using password: YES)'

This is a brand new installation of Debian and everything else. I install apache2, php4, apache2-mod-php4, and mysql-server. Is it just not configured with apache2 properly?

Also how do I take off the defualt redirect to /var/www/apache2-default/ on my site for apache2?

compu73rg33k 02-06-2005 09:29 PM

Okay this is weird. I updated mysql-server and now it doesn't give me the error, but it still isn't connecting on the forum.

monroetech 02-06-2005 10:13 PM

have you created a mysql user named debian-sys-maint? If not, that's why you'll get that error!

and to take care of that redirect you need to open up your httpd.conf and change the
DocumentRoot directive to whatever directory you want to be your DocumentRoot

compu73rg33k 02-07-2005 03:23 PM

How do I create that user for mysql?

monroetech 02-07-2005 05:51 PM

Well, I would first install phpMyAdmin to create and manage users other then root.

mysql should be setup automatic to accept connections from root, so first you need to create a root password

mysqladmin -u root password "new-password"

Then use phpMyAdmin to create and edit any other users.....

compu73rg33k 02-08-2005 12:01 AM

User Host Password Global privileges Grant Action
debian-sys-maint localhost Yes ALL PRIVILEGES Yes Edit

It appears to be made. I'm not sure what the password is though. Nothing?

monroetech 02-08-2005 04:47 PM

well if he exists then use phpMyAdmin to create a new password...

if that is an actual user on your system you can as that user type

mysqladmin -u debian-sys-maint password "new-password"

compu73rg33k 02-08-2005 05:37 PM

I don't think it's the user becuase it's not giving me that error anymore. It restarts just fine.


All times are GMT -5. The time now is 09:50 PM.