![]() > fault_socket /Applications/MAMP/tmp/mysql/mysql. > MYSQL_LIBS -L/Applications/MAMP/Library/lib/mysql -lmysqlclient > MYSQL_INCLUDE -I/Applications/MAMP/Library/include/mysql > MYSQL_SOCKET /Applications/MAMP/tmp/mysql/mysql.sock > This is my phpinfo concerning mysql : you can see that the socket is > Obviously the socket is wrong but i don't know how to correct this in > administrator if this problem persists. > An sql error occurred while fetching this page. > Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) > /Applications/MAMP/tmp/mysql/mysql.sock > I can connect to mysqlwith cocoa using this unix socket > Everything works, also the debugging, except the mysql connection. > MAMP 1.7 with Apache on port 80 and mysql on port 3306. > I'm a new eclipse user, having used textwrangler for my php editing Maybe your two php.ini files are different regarding MySQL configuration? PHP under Apache and "CLI" (command-line). If youre working on unix: service apache22 start service apache22 stop (commands for apache 2.2) on windows: net stop apache2.2 net start apache2.2 (commands for apache 2. On Windows) there are separate configuration files (php.ini) for running change the 80 here again to your desired port. I'm not a Mac user, but in XAMP (I'm guessing it's the MAMP equivalent ![]() Re: Mac+MAMP+EclipsePDT > Mysql connection problem (sorry for crossposting this i didn't find the right group) But now I cant access my previously set up virtual host sites. So how do i put Eclipse in the right direction ? Im using MAMP on windows 10 and I couldnt start Apache server because of my default port(80) is used by System. fault_socket /Applications/MAMP/tmp/mysql/mysql.sock To solve this, you need to change MAMP server ports. It means that port 80 is being used by some other application like Skype or IIS or WAMP etc. MYSQL_LIBS -L/Applications/MAMP/Library/lib/mysql -lmysqlclient Note: If you open your MAMP on Windows 11 and It is showing you an error, APACHE needs open port 80 which is already used by System. MYSQL_INCLUDE -I/Applications/MAMP/Library/include/mysql MYSQL_SOCKET /Applications/MAMP/tmp/mysql/mysql.sock This is my phpinfo concerning mysql : you can see that the socket is Obviously the socket is wrong but i don't know how to correct this in In php however, when my code $this->user, $sqlpassword, $new_link) Ĭan't connect to local MySQL server through socket '/tmp/mysql.sock' (2)Īn sql error occurred while fetching this page. ![]() I can connect to mysqlwith cocoa using this unix socket MAMP 1.7 with Apache on port 80 and mysql on port 3306.Įverything works, also the debugging, except the mysql connection. I'm a new eclipse user, having used textwrangler for my php editing Mac+MAMP+EclipsePDT > Mysql connection problem ![]() Search Help Register Login Home Home » Language IDEs » PHP Development Tools (PDT) » Mac+MAMP+EclipsePDT > Mysql connection problem Show: Today's Messages :: Show Polls :: Message Navigator ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |