Dedicated Servers : Random access memory or RAM
RAM in a dedicated web server is as important as your local machine or server.…
We’ll show you how to make a CNCC user and a CNCC database in this article.
$ CREATE USER '<CNCC User Name>'@'%' IDENTIFIED BY '<CNCC Password>';$ show databases; to check if the database exists$ CREATE DATABASE IF NOT EXISTS <CNCC Database> CHARACTER SET utf8; for Database creation.$ GRANT SELECT,INSERT,CREATE,ALTER,DROP,LOCK TABLES,CREATE TEMPORARY TABLES, DELETE,UPDATE,EXECUTE ON <CNCC Database>.* TO '<CNCC User Name>'@'%';To show how to create a cncc user, a cnccdb, and provide rights to a cncc user, consider the following scenario:
# Login to MySql prompt:-
$ mysql -u root -p
Check user already exists or not
$ SELECT User FROM mysql.user;
# In case, user already exists, move to next step. Command to create new user is as mentioned below:-
$ CREATE USER 'cnccusr'@'%' IDENTIFIED BY 'cnccpasswd'
# Command to check if database exists:-
$ show databases;
# Check if required database is already in list. If MySql has cnccdb already created as per 1.0.0 release creation, drop it.
$ DROP DATABASE cnccdb;
# Database creation for CNCC
$ CREATE DATABASE IF NOT EXISTS cnccdb CHARACTERSET utf8;
#Granting permission to user:-
$ GRANT SELECT, INSERT, CREATE, ALTER, DROP, LOCK TABLES, CREATE TEMPORARY TABLES, DELETE, UPDATE, EXECUTE ON cnccdb .* TO'cnccusr'@'%';
We genuinely hope you now have a better understanding of Create a MySQL database and a username. If you continue to have problems with the method outlined above, please contact the bodHOST Team for assistance. 24×7
Explore more hosting insights, tips and industry updates.
RAM in a dedicated web server is as important as your local machine or server.…
DNS – Domain Name Server. Each machine on the Internet must have a unique IP…
The ‘412 Precondition Failed’ error message is displayed on any of the web pages of…