What are some NPM commands you should know?
Managing packages is a daily effort while working on JavaScript or Node.js projects. This is…
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.
Managing packages is a daily effort while working on JavaScript or Node.js projects. This is…
There are several companies that prefer migrating their database from MS SQL to MySQL. It…
In this tutorial, we will explain to you How to Enable Disk Quotas in WHM…