I work on MAC OS. I try to connect to the database (mysql) to save data
but I get the error below:Code:mysqli_connect('localhost','root','','base_gives')
When I connect to the local IP address, I can not find the web page saying that the apache server worksWarning: mysqli_connect() [FUNCTION.mysqli-connect]: (HY000/2002): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
Anyone any idea?
Bookmarks