![]() ![]() Create a Logout (Destroy session) CSS File Create. Finally I re-installed MariaDB5, rem’d out the code for phpMyAdmin, logged into it checked it was for 5 and deleted my databases and users there, before un-remming the code and removing 5 from my NAS. Here are Seven pretty simple steps you have to follow to create a login system. Fast forward 3 weeks and I used phpMyAdmin to add a field to one of my databases, updated my php code to save data in that field, tested, but couldn’t get it to save as phpMyAdmin had updated in MariaDB10 and the php files were loading against 5!įortunately my backups were all OK backing up against 5 which included my data for the last 3 weeks, so I restored these to version 10, updated my connection strings to use port 3307 and the mariadb10.sock file, as well as updating my backups to use the same. So when I re-installed 5 my original connection string worked to the old databases, which were identical to the new ones in 10 as I had backed them up and restored them at that time so there was no difference. I assumed that by deleting MariaDB5 that the databases stored in there would be destroyed. Credentials Syntax Try and Catch Blocks Potential Errors with MySQLi and PDO. Credentials Explained Option 2: Connect To MySQL With PDO. ![]() So to update this and make others aware so they don’t make the same mistake I did. 2 Ways to Connect to MySQL database using PHP Option 1: Connect to MySQL with MySQL Improved extension. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |