Re: Apache public_html question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Tony Nelson wrote:
At 9:38 AM -0700 3/26/07, Don Russell wrote:
Ingemar Nilsson wrote:
Don Russell <fedora@xxxxxxxxxxxxxxxxxxxxx> writes:

Now, I get as far as:
if (false === ($dbh = mysql_connect('localhost',$uid,$pwd))) {
    die("Can't connect to mySQL database: ".mysql_error());

and sure enough, results in:
Can't connect to mySQL database: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (2)

Is your MySQL server running? As root, run

service mysqld status

hmmm, interesting:

[root@boris ~]# service mysqld status
mysqld: unrecognized service
[root@boris ~]# rpm -q mysql
[root@boris ~]#

I checked if there was a mysqld package to install... nope...


Thank you.... I'm a bit surprised that's not installed with mysql... but...

Well, I was still getting the "unable to connect..." error... but a
little googling around and I found a solution for that.... I had to edit
/etc/my.cnf to add a [client] section to make sure the client was using
the same socket the server was using.


Much better... now I just get "access denied" errors... but I'm
expecting that... I haven't created the database nor the db users yet.

Slowly.... slowly... I'm getting there. :-)

Thanks for your help. :-)

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux