![]() ![]() Now you have told php, that the mysql socket file is actually present in the /tmp folderĤ. IMP the " " in front of the first line, that is commenting out the first line Open it and find all the lines which have mysql.sock.Ĭopy those lines and create a new entry, like below. I also saw that php was using the mysql sock file from /var/mysql/mysql.sockģ.) I made a copy of the php.ini file. Select the desired version and wait until the software download is finished. We start the process of installing Xampp software on the Windows server by downloading the latest version of Xampp from the official Apache Friends website. And you can make your website accessible to everyone through this. Having at least 4 GB of RAM and 2 cores CPU. ![]() It is best for web developers who develop websites using PHP as it. This will show you what configuration file your apache server is using On this web server, you can run Php, Mysql, Apache. XAMPP: XAMPP is an open source cross-platform web server developed by Apache friends. For me it was /Library/WebServer/Documents/ġ.1) Create a showphpconfig.php at that locationĢ.) Go and visit this file in your browser : I did the following to resolve the issue (Mac OS x) -ġ.) First go to your apache webroot ( path available from /etc/apache2/nf -> DocumentRoot). I know mySQL is working, I know PHP is working, but I can't get them talking. I see it in the following locations: pdo_fault_socket=/tmp/mysql.sockĪnd when I go to connect to phpMyAdmin, I get the following error:Ĭannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.Īnd when I look in my phpinfo() file, I get the following under mySQL: fault_socket /var/mysql/mysql.sock /var/mysql/mysql.sock So I go in there, and every place I see "default_socket" I change it from: /var/mysql/mysql.sock In my /etc directory, I don't have php.ini, I have. So I suspected that it was a socket issue. So I've got PHP running, I can log into the mySQL server using both the console and Sequel Pro. I'm running PHP 5.3.2 and my phpinfo() page is working fine. If everything is work correctly, you should be able to log in with username "root", no password.I'm getting errors whenever I try to connect locally to mySQL on Mac OS Snow Leopard 10.6.4. ![]() This will launch phpMyAdmin in a new browser tab. To test database server, open Control Panel and select "Admin" button for MariaDB. If everything is working correctly, you should see homepage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |