Fedora Linux Support Community & Resources Center
  #1  
Old 5th August 2008, 05:46 PM
luoleiCN Offline
Registered User
 
Join Date: Aug 2008
Location: China
Age: 25
Posts: 16
How to install mysql

i am a newer to linux
yum list mysql

i got so many,

mysql.i386 5.0.51a-1.fc9 installed
mysql-libs.i386 5.0.51a-1.fc9 installed
mysql-server.i386 5.0.51a-1.fc9 installed
Available Packages
MySQL-python.i386 1.2.2-7.fc9 updates
mysql++.i386 3.0.4-1.fc9 updates
mysql++-devel.i386 3.0.4-1.fc9 updates
mysql++-manuals.i386 3.0.4-1.fc9 updates
mysql-administrator.i386 5.0r12-8.fc9 updates
mysql-bench.i386 5.0.51a-1.fc9 fedora
mysql-connector-java.i386 1:3.1.12-5.fc9 fedora
mysql-connector-odbc.i386 3.51.24r1071-1.fc9 fedora
mysql-devel.i386 5.0.51a-1.fc9 fedora
mysql-gui-common.i386 5.0r12-8.fc9 updates
mysql-gui-tools.i386 5.0r12-8.fc9 updates
mysql-proxy.i386 0.6.1-1.fc9 fedora
mysql-query-browser.i386 5.0r12-8.fc9 updates
mysql-test.i386 5.0.51a-1.fc9 fedora
mysqltuner.noarch 0.9.8-1 updates



which should i choose ,and i need gui
Reply With Quote
  #2  
Old 5th August 2008, 05:52 PM
oneofmany's Avatar
oneofmany Offline
Registered User
 
Join Date: Aug 2006
Posts: 226
"yum install mysql" should be all you need but the basic server requires the top 3 in your list which are apready installed. everything else is just access libraries and development utilities.

to start it up, you'll need to do the following..

Code:
su -
chkconfig mysqld on
service mysqld start
the first time it is started, it will initialise the database and give you the following 2 lines in order to set your root access password ...

Code:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h your.host.name password 'new-password'
you can ignore the information about how to start the daemon

Last edited by oneofmany; 5th August 2008 at 05:57 PM.
Reply With Quote
  #3  
Old 6th August 2008, 01:14 AM
luoleiCN Offline
Registered User
 
Join Date: Aug 2008
Location: China
Age: 25
Posts: 16
many thanks , i came to linux just 10 days ago
i got it
Code:
yum intall mysql.i386
yum intall mysql-server.i386
yum install mysql-gui-common.i386
yum install mysql-gui-tools.i386
i also got gui.

and this can start mysql service
Code:
/sbin/chkconfig --add mysqld       
/sbin/chkconfig mysqld on           
/sbin/service mysqld start

ps: i am Chinese, my eglish is so poor that sometimes i cannot pass the egllish exam. but i hope this can help to install mysql.
Reply With Quote
  #4  
Old 6th August 2008, 03:42 PM
arshad3m's Avatar
arshad3m Offline
Registered User
 
Join Date: Jul 2008
Posts: 344
hallo friends,
i installed the above mentioned application. it asks to connect to a server. i wonder where can i find a server since i have only one computer in my home. this is the window i get. and i dont know what password it asks for.



furthermore, i used to work in microsoft sql server 2005, do all those commands and queries can be applied here also??

thanks you very much.
__________________
:) ~~~~PrOuDtoBeALiNuxUsEr~~~~ :)
Reply With Quote
  #5  
Old 6th August 2008, 03:43 PM
oneofmany's Avatar
oneofmany Offline
Registered User
 
Join Date: Aug 2006
Posts: 226
if you installed and started the mysql server, try localhost
Reply With Quote
  #6  
Old 6th August 2008, 03:47 PM
pete_1967 Offline
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,929
If you have MySQL installed on your desktop, you just need to add its details.

Hostname would be localhost
Username would be what ever user you added (root) by default
Password is password for the user (unless you configured root to use password <--- you should have!) else leave empty.

MSSQL and MySQL are not 100% compatible, actually no SQL server (PostGRE, Oracle etc etc) use same SQL syntax than others.

Only if your tables and queries are very simple and basic you may be in luck to get away with just replicating one DB SQL to another.
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz
Reply With Quote
  #7  
Old 6th August 2008, 03:53 PM
arshad3m's Avatar
arshad3m Offline
Registered User
 
Join Date: Jul 2008
Posts: 344
thank you, but,,,,,
i have installed it but i cant find it anywhere. in application>>programming>> i have only 'mysql Administrator' and 'mysql query browser'.




as you said, i just typed local host and clicked connect. this is what the message i got.

__________________
:) ~~~~PrOuDtoBeALiNuxUsEr~~~~ :)
Reply With Quote
  #8  
Old 6th August 2008, 03:54 PM
luoleiCN Offline
Registered User
 
Join Date: Aug 2008
Location: China
Age: 25
Posts: 16
hi ,arshad3m
i agree with pete
set root(root of mysql not fedora) code:

mysqladmin -u root password 'newpassword'

you can do this to make your mysql safer:

mysql> DROP DATABASE test;
mysql> DELETE FROM mysql.user WHERE user = '';
mysql> FLUSH PRIVILEGES;


i hope it will help
Reply With Quote
  #9  
Old 6th August 2008, 03:54 PM
oneofmany's Avatar
oneofmany Offline
Registered User
 
Join Date: Aug 2006
Posts: 226
from a terminal window..

Code:
su -
chkconfig mysqld on
service mysqld start
Reply With Quote
  #10  
Old 6th August 2008, 03:57 PM
luoleiCN Offline
Registered User
 
Join Date: Aug 2008
Location: China
Age: 25
Posts: 16
you must start mysql service first

/sbin/chkconfig --add mysqld
/sbin/chkconfig mysqld on
/sbin/service mysqld start

then connect again
Reply With Quote
  #11  
Old 6th August 2008, 04:01 PM
arshad3m's Avatar
arshad3m Offline
Registered User
 
Join Date: Jul 2008
Posts: 344
thank you very much 'oneofmany' and 'luoleiCN' it worked now. but i wonder why u gave 'mysqld' ? cant we give any prefix other than 'd' after mysql??

thanks
__________________
:) ~~~~PrOuDtoBeALiNuxUsEr~~~~ :)
Reply With Quote
  #12  
Old 6th August 2008, 04:02 PM
oneofmany's Avatar
oneofmany Offline
Registered User
 
Join Date: Aug 2006
Posts: 226
luoleiCN, you shouldn't require the --add line
Reply With Quote
  #13  
Old 6th August 2008, 04:03 PM
oneofmany's Avatar
oneofmany Offline
Registered User
 
Join Date: Aug 2006
Posts: 226
Quote:
Originally Posted by arshad3m
thank you very much 'oneofmany' and 'luoleiCN' it worked now. but i wonder why u gave 'mysqld' ? cant we give any prefix other than 'd' after mysql??

thanks
the "d" refers to "daemon" which is the unix name for a "service" which is what the mysql server is.
Reply With Quote
  #14  
Old 6th August 2008, 04:10 PM
arshad3m's Avatar
arshad3m Offline
Registered User
 
Join Date: Jul 2008
Posts: 344
thank you very much.
__________________
:) ~~~~PrOuDtoBeALiNuxUsEr~~~~ :)
Reply With Quote
  #15  
Old 6th August 2008, 05:18 PM
arshad3m's Avatar
arshad3m Offline
Registered User
 
Join Date: Jul 2008
Posts: 344
hai i tried to create a simple table. but even after i execute i cant view the result. please tell me where to see the output.

thank you very much.

__________________
:) ~~~~PrOuDtoBeALiNuxUsEr~~~~ :)
Reply With Quote
Reply

Tags
install, mysql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install mysql MySQL-server-4.0.26-0 FC2 or Upgrade 3.23.58-16.FC2.1 from to 4 niloshima EOL (End Of Life) Versions 1 28th October 2005 06:25 PM
Question about yum install apache2, php, mysql, php-mysql... cpthk Servers & Networking 6 21st September 2005 08:25 AM
Install mail server from Postfix/CyrusSASL2/PAM-MySQL/MySQL/Dovecot/Amavisd/Clamav chengcsw Guides & Solutions (No Questions) 7 26th April 2005 08:38 PM
MySQL-3x won't let me install MySQL 4x DorianMode Servers & Networking 6 1st February 2005 06:33 PM


Current GMT-time: 18:08 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat