Alex1 Posted May 10, 2020 Share Posted May 10, 2020 This is sort of long. Chapter 12 I am going through chapter 12 in the Quick Start Guide PHP for the Web and am having an issue creating the myblog database on PHPMyAdmin from Installation and Configuration A. I have created the database in PHPMyAdmin with the database button. This gives me the option to make a table and columns. I am not sure where I am supposed to put the text: I am not sure where this is supposed to go on PHPMyAdmin in order to make the database. The book doesn't explain where it is supposed to go. When I try and connect to mysql I get the error: Quote Warning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES) Could not connect to the database I am guessing that this is because I have not been able to make the database, and that it might go away after I make it. I am using Mysql Workbench which seems as well as XAMPP. The server status is able to run but it is not able to connect. The user is root I am also having other errors with the other pages, such as Edit an Entry Quote Warning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES) in C:\xampp\htdocs\PHP\Chapter 12\edit_entry.php on line 13Warning: mysqli_set_charset() expects parameter 1 to be mysqli, bool given in C:\xampp\htdocs\PHP\Chapter 12\edit_entry.php on line 16 This page has been accessed in error.Warning: mysqli_close() expects parameter 1 to be mysqli, bool given in C:\xampp\htdocs\PHP\Chapter 12\edit_entry.php on line 72 This will probably be fixed after I am able to connect to Mysql. Chapter 13 The page titled My Site of Quotes does not work because I am getting a lot of errors. This might be because I have not gotten Mysql to run yet, and it might be fixed after. The other pages have similar issues. I also wanted to check to make sure that I have the files set up correctly. Here is what it is supposed to look like: Here are how my files are set up Link to comment Share on other sites More sharing options...
Necuima Posted May 11, 2020 Share Posted May 11, 2020 It looks like you have created the database but have you created the tables? Cheers, Necuima Link to comment Share on other sites More sharing options...
Recommended Posts