AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Apache needs port 80 mamp11/30/2023 ![]() > 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. When I change that vhost port to 8888 then it works. I type in my vhost in thew browser or even use the link provded and it appends a :8888 onto the link and says cant establish connection to server. One new vhost I created will not work though on this port. > An sql error occurred while fetching this page. I have a series of vhosts that work fine on global settings of port 80 set in mamp pro. > 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? 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. PHP under Apache and "CLI" (command-line). 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. On Windows) there are separate configuration files (php.ini) for running 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) So how do i put Eclipse in the right direction ? fault_socket /Applications/MAMP/tmp/mysql/mysql.sock 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 ![]() ![]() 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
Read More
Leave a Reply. |