PDA

View Full Version : Help Please!!!


robot_chicken7
06-12-2008, 03:17 PM
I'm on codegirl.com doing a tutorial for creating a database:
http://codegrrl.com/tutorials/part-1-create-your-database

The errors I'm getting on the page are (I deleted the location of my files except the ending.):

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /php_blog.php on line 2

Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /php_blog.php on line 3

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /php_blog.php on line 3

Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in php_blog.php on line 12

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /php_blog.php on line 12
Can't create the table 'php_blog' in the database.
CREATE TABLE php_blog ( id int(20) NOT NULL auto_increment, timestamp int(20) NOT NULL, title varchar(255) NOT NULL, entry longtext NOT NULL, PRIMARY KEY (id) )
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Warning: mysql_close(): no MySQL-Link resource supplied in /php_blog.php on line 18


If anyone can help that would be greatly appreciated!

Julieta
06-12-2008, 07:26 PM
Please, don't bump the thread. It's against the rules.

3. Don't spam. This means don't make useless posts, one word replies, or double/triple post. (If you missed something from your original post, just click the "Edit" button).
http://www.kawaiiville.com/forums/showthread.php?t=6

robot_chicken7
06-13-2008, 02:06 AM
sorry i didn't know that...can you help me please?

Julieta
06-13-2008, 02:21 PM
Sorry, databases are not my thing =/

You should go to codegrrl's forum, and ask for help. They have sub-forum for users that have problems with any Codegrrl tutorial: http://codegrrl.com/forums/index.php?showforum=25
I'm sure they will help you there ;]

robot_chicken7
06-13-2008, 10:38 PM
ok thank you