Jump to content


mysql post installation niggles

  • Please log in to reply
No replies to this topic

#1 cubanallstar83

  • New Members
  • Pip
  • Newbie
  • 1 posts
  • Locationmanchester, uk

Posted 03 October 2003 - 08:50 AM

Ive recently installed mysql-4.0.15 and have run into a couple of problems. The first of which is with creating new databases Ive set up a user account and log in fine but when I try and create a new db I get:

Error 1044: Access denied for user \'lxf@localhost\' to database \'new\'

I cant work out why as when I first ran the install I was able to create two databases Have I dont something along the way that I shouldnt have?

Its obviously something to do with permisions but ive plugged away all week and havnt got anywhere!

The second problem lies in testing the connection with php. Im using the script:


$connection=mysql_connect (\"host\", \"user\", \"pass\") or die (\"connectError:\".mysql_error());


If I access this on my server I get the response

Warning: mysql_connect(): Can\'t connect to local MySQL server through socket \'/tmp/mysql.sock\' (2) in /var/www/html/php/oct02tut.php on line 3
ConnectError:Can\'t connect to local MySQL server through socket \'/tmp/mysql.sock\' (2)

If I run a braindump I get

MYSQL_SOCKET /tmp/mysql.sock

Thing is though my socket is located in /var/lib/mysql/mysql.sock !!??

I came to bring the rain

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users