MySQL Databse.
#1

Hello there, am getting these errors when am starting my server in the host.
I have created MySQL database but i don't know why am getting these errors.

Код:
[13:09:01] [MySQL] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).
[13:09:01] [MySQL] Error (0): Failed to connect. Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).
My code

Код:
#define db 				 "my database username"
#define host 					"localhost"
#define user 					"my database username"
#define pass 					"my database password"
I think my code is fine, what's wrong then?
Reply


Messages In This Thread
MySQL Databse. - by TheSnaKe - 17.09.2014, 11:34
Re: MySQL Databse. - by FlawPaw - 17.09.2014, 11:36
Re: MySQL Databse. - by Guest4390857394857 - 17.09.2014, 12:10
Re: MySQL Databse. - by TheSnaKe - 17.09.2014, 17:05
Re: MySQL Databse. - by TheSnaKe - 17.09.2014, 17:07
Re: MySQL Databse. - by Sawalha - 17.09.2014, 17:16
Re: MySQL Databse. - by TheSnaKe - 17.09.2014, 21:16
Re: MySQL Databse. - by TonyNames - 17.09.2014, 21:20
Re: MySQL Databse. - by Vince - 17.09.2014, 21:30
Re: MySQL Databse. - by TheSnaKe - 17.09.2014, 21:52

Forum Jump:


Users browsing this thread: 1 Guest(s)