I’m trying to create a CMS and I want to make my client life easier so I create the database by myself.
I encountered a problem while trying to do this. The database isn’t created so I can’t connect with a PDO connection and mysql is deprecated so I can’t use it. Do you have any advice for me on how I can create a PDO connection before the database is created? like a mysql_select_db() alternative?
I’m trying to create a CMS and I want to make my client life
Share
You can start a PDO connection by this, correct me if I’m wrong:
The difference from this with a normal connection is the removed part
dbname=[xx], as you see.Also a free tip when you want to use a UTF-8 connection:
In order to the comment of
Yehonatanyou can select a database by: