17.09.2014, 11:34
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.
My code
I think my code is fine, what's wrong then?
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).
Код:
#define db "my database username" #define host "localhost" #define user "my database username" #define pass "my database password"