this will create a new database on the server with the new user having all rights granted on that db.
CREATE USER 'uname'@'localhost' IDENTIFIED BY 'pass'; GRANT USAGE ON *.* TO 'uname'@'localhost' IDENTIFIED BY 'pass' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ; CREATE DATABASE IF NOT EXISTS 'uname' ; GRANT ALL PRIVILEGES ON 'uname'.* TO 'uname'@'localhost';
if there´s a problem when creating the database, do not use the ‘ ‘ signs around the db name.
just to avoid phpmyadmin for this little task
i didn´t like to look that up everytime.
Pingback: Dedicated Servers Offer Personalized Web Performance
Pingback: How do i connect a windows C# application to a remote Mysql database? | BingSite