Command for MySQL of DBMS-I
3 posters
IITDU Forum :: Academics (BIT) :: Semester 4 :: CSE 404
Page 1 of 1
Command for MySQL of DBMS-I
I am now giving the commands which was shown by Tahrima madam in the class.
1. show databases: It will show you the existing databases.
2. use: This will active your desired database.
3. create database : It will create a new database.
4. create database if not exists : it will create a database if the database doesn't exist.
5. drop database if exists : Delete a database if it is existing.
6. create table if not exists ( column_name1 data type,column_name2 data type,column3_name data type,...); : It will create a table in database with your desired fields.
7. show tables:shows the existing tables.
8. explain:It will show you the table with their fields and data type, type modifier etc.
9. alter table add column : Add a column in your table.
10.alter table change : You can change a column with new one.
11. alter table drop column : you can delete a column using this command.
Please give ;(semi colon) after every command (like C's statement )
To run LAMPP and MySQL in UBUNTU commands are-
To run MySQL in windows :
Here I have given all the commands from today's class. If there is any command I missed, then please reply me.
1. show databases: It will show you the existing databases.
2. use
3. create database : It will create a new database.
4. create database if not exists : it will create a database if the database doesn't exist.
5. drop database if exists : Delete a database if it is existing.
6. create table if not exists ( column_name1 data type,column_name2 data type,column3_name data type,...); : It will create a table in database with your desired fields.
7. show tables:shows the existing tables.
8. explain
9. alter table add column : Add a column in your table.
10.alter table change : You can change a column with new one.
11. alter table drop column : you can delete a column using this command.
Please give ;(semi colon) after every command (like C's statement )
To run LAMPP and MySQL in UBUNTU commands are-
- Code:
LAMPP: sudo /opt/lampp/lampp start
MySQL: sudo /opt/lampp/bin/mysql
To run MySQL in windows :
- Code:
net start mysql
Here I have given all the commands from today's class. If there is any command I missed, then please reply me.
Last edited by BIT0129-tabassum on Sat Aug 07, 2010 1:09 am; edited 4 times in total (Reason for editing : editing missing commands)
Re: Command for MySQL of DBMS-I
erm... there is a space after sudo and please give them using the code tag.
And can you also mention the windows xampp mysql command thingy?
And can you also mention the windows xampp mysql command thingy?
Re: Command for MySQL of DBMS-I
Sorry :S I wasn't sure about the command of UBUNTU. Ok, I am making it correct and am giving the command to make mySQL run in windows.
Re: Command for MySQL of DBMS-I
[You must be registered and logged in to see this image.] uff...cant give a symbol due to quote symbol problem
Re: Command for MySQL of DBMS-I
I guess aro besh kisu command o silo
not sure
PRAN collects those
not sure
PRAN collects those
BIT0115-Efat- Service Release
- Course(s) :
- BIT
Blood Group : O+
Posts : 779
Points : 1120
Re: Command for MySQL of DBMS-I
2. use : This will active your desired database.
I am an idiot and I do not understand these two commands
when I type use; and press enter it says USE must be followed by a database name.
But as you instructed, I didn't do anything wrong.
Can you please tell me what is wrong?
Re: Command for MySQL of DBMS-I
I see! It was the problem which was occurred in forum for some times, that u have fixed. I typed all the things currently because still I have the file from which I paste it here (because of the log out problem, I typed it and then copy it to a text file)
I typed the there, but don't know where it has gone? you found some other mistakes in the same post, it was not my fault, it was the error occurred by forum.
I typed the
Re: Command for MySQL of DBMS-I
BIT0129-tabassum wrote:I see! It was the problem which was occurred in forum for some times, that u have fixed. I typed all the things currently because still I have the file from which I paste it here (because of the log out problem, I typed it and then copy it to a text file)
I typed the there, but don't know where it has gone? you found some other mistakes in the same post, it was not my fault, it was the error occurred by forum.
can you be kind enough to type the proper commands now or what?
And by the way, they are codes right?
and I thought there was something called code tag which should be used when you are posting a code.
the code tags are for handling those errors by default.
Even at the occurrence of such errors, using code tag prevents them from affecting the post where they are used.
Or is it that you thought mysql commands are not codes at all?
Re: Command for MySQL of DBMS-I
Begging pardon for my stupid post. Hoping next time I will give smart posts
Re: Command for MySQL of DBMS-I
BIT0129-tabassum wrote:Begging pardon for my stupid post. Hoping next time I will give smart posts
you are not going to edit the title post, are you?
Re: Command for MySQL of DBMS-I
I apologize. Dont know why I am forgetting every thing these days!!!ufff.. :'(
Similar topics
» Various commands for DBMS and MySQL
» some commands for mysql.....
» MYSQL commands Collection
» Connect with MySQL using C in ubuntu
» DBMS -II slide
» some commands for mysql.....
» MYSQL commands Collection
» Connect with MySQL using C in ubuntu
» DBMS -II slide
IITDU Forum :: Academics (BIT) :: Semester 4 :: CSE 404
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford