2

I have used the Create Schema in mySQL. But it act as a separate database. It doesn't affect the already created Databaase. How to create Schema in mySQL within an particular database in mySQL and need to group the tables within a schema.?

Can anyone know about this pls...??

AMARESH
  • 41
  • 1
  • 2
  • 4

2 Answers2

2

I believe from recent experience and from a quick Google on the subject that a Schema IS a database in MySQL unlike other databases where the two are different. See the following links:

MySQL 'create schema' and 'create database' - Is there any difference

http://lists.mysql.com/mysql/211616

Community
  • 1
  • 1
Daniel Casserly
  • 3,482
  • 2
  • 27
  • 60
0

You can use CREATE SCHEMA/CREATE DATABASE and the USE dbname.

Devart
  • 115,199
  • 22
  • 161
  • 180
Mihai Stancu
  • 15,260
  • 2
  • 32
  • 49
  • 1
    i used the below codes to create schema in mysql mysql> CREATE USER 'some_user'@'localhost' IDENTIFIED BY 'some_pass'; mysql> GRANT ALL PRIVILEGES ON databasename.* TO 'some_user'@'localhost' WITH GRANT OPTION; – Bharathiraja Aug 02 '14 at 05:15