26 lines of code to help me remember how to make a connection to a MySQL database from a .php script
Adding a user into mysql
mysql
use mysql
select * from users G; (to get the format)
insert into users (Host, User, Password, Select_priv, etc) values (“localhost”, “php”, Password(“f00”), “Y”, etc);
flush privileges;
quit
mysql -u php -p
—————————-
*making the connection*
config/config.php:
—————————-
whatever.php: