![]() ![]() ![]() To test that everything is working, in the inc folder, create a connection.php file. Instead, you will need to use the MySQL (PDO) driver. NOTE: in this exercise the teacher is using the SQLite (PDO) driver. On the left hand side verify that your database was uploaded. It will bring you to XAMPP page hosted locally on your computer.You can verify you are connected by opening the XAMPP control panel, Start the Apache Server, Open Web Browser and type localhost.The XAMPP open source package has been set up to be incredibly easy to install and to use. XAMPP is a completely free, easy to install Apache distribution containing MariaDB, PHP, and Perl. Right click anywhere on the document, and select option that says "Run MySQL Query". XAMPP is the most popular PHP development environment. ![]() To upload the project to phpMyAdmin in XAMPP, open the database.sql file that was downloaded from treehouse for the project. Note that using this option without enabling named pipes on Windows (via the 'enable-named-pipe' option) will render mysqld useless commented in by lampp security skip-networking skip-federated Replication Master Server (default) binary logging is required for replication log-bin deactivated by default since XAMPP 1.4.11 log. If it's not appearing or shows an error, open XAMPP again to make sure you started mySQL There should be a localhost database in there. In the Visual Studio Code Explorer you will now notice a MYSQL drop down tab at the very bottom.Reload Visual Studio Code to ensure it's activated.Andy G at 0:23 I went to my browser (Chrome) and typed in localhost and I also tried 127.0.0.1. In Visual Studio Code download and enable the extension "MySQL - MySQL management tool" by Jun Han 1,259 3 24 52 How are you attempting to access localhost I think this requires a bit more specific information about what you are currently doing.In Visual Studio Code download and enable the extension "PHP Server" by baprifa (Ignore this step if you already have, or if are using a different php server.Start mySQL in XAMPP, it should be on port 3306.After some research I found a solution that worked for me. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |