Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i m using fedora i686 and wants to use mysql on it.
But i dont know how to install it and make use of it, means how to conigure clients and servers etc. How to create tables on linux using mysql. How to install various gui tools> Please help. Any help will be appreciated.
You can install MySQL on Fedora by su'ing to root and typing:-
yum install MySQL-\*
This *should* install both the server and the client. After that has done, you can start the MySQL server (assuming it doesn't start automatically) with: -
/etc/rc.d/init.d/mysqld start
...and access the database with: -
mysql -u root
(Might want to set a password on the root account - Google on how to do this, but I believe the server install tells you how to do it as well)
To create a database with one simple table from the mysql client: -
CREATE DATABASE <name>;
USE <name>;
CREATE TABLE mytable (
myID UNSIGNED INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
data VARCHAR(255)
);
Insert some data into our simple table: -
INSERT INTO mytable(data) VALUES ('Hello World!');
And pull the data back out...
SELECT myID, data FROM mytable;
And see the table with-
SHOW TABLES;
...and also...
SHOW DATABASES;
Quit the client with 'exit'.
Google for MySQL tutorials if you want to know more. I don't use any GUI tools with MySQL myself, so I don't know any to recommend. Anyway, hope this helps.
Thanx araahsi256, I m very much thankful to u for helping me coming out of this problem.
Thanks
Quote:
Originally Posted by arashi256
You can install MySQL on Fedora by su'ing to root and typing:-
yum install MySQL-\*
This *should* install both the server and the client. After that has done, you can start the MySQL server (assuming it doesn't start automatically) with: -
/etc/rc.d/init.d/mysqld start
...and access the database with: -
mysql -u root
(Might want to set a password on the root account - Google on how to do this, but I believe the server install tells you how to do it as well)
To create a database with one simple table from the mysql client: -
CREATE DATABASE <name>;
USE <name>;
CREATE TABLE mytable (
myID UNSIGNED INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
data VARCHAR(255)
);
Insert some data into our simple table: -
INSERT INTO mytable(data) VALUES ('Hello World!');
And pull the data back out...
SELECT myID, data FROM mytable;
And see the table with-
SHOW TABLES;
...and also...
SHOW DATABASES;
Quit the client with 'exit'.
Google for MySQL tutorials if you want to know more. I don't use any GUI tools with MySQL myself, so I don't know any to recommend. Anyway, hope this helps.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.