LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-15-2005, 01:46 AM   #1
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Rep: Reputation: 30
Lookfing for SQL Software?




I am wondering if anyone could help me out with finding a good SQL Software for Linux, Basically I want to practice on how to create table, edit row, delete, find... etc.

I also want it to be free if its possible.

Thanks.

Last edited by amer_58; 04-15-2005 at 01:47 AM.
 
Old 04-15-2005, 01:56 AM   #2
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
Hello!

There are many databases for Linux, I recommend MySQL or PostgreSQL.

Boby
 
Old 04-15-2005, 07:03 AM   #3
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
I am having trouble installing mysql 5, can anyone help? Is it usuall steps:

./configure
make
make install
 
Old 04-16-2005, 02:42 AM   #4
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
I still cant get it running, if anyone knows a good link or an articel to help me out, am not even sure if i have the right pakage..

I have downloaded this file:
mysql-standard-6.0.3-beta-pc-linux-gnu-i686.tar.gz

but when I run the configure command this is what I get:

Code:
root@Admin:/usr/local/mysql# ./configure
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you.  If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Installing all prepared tables
Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h Admin password 'new-password'
See the manual for more instructions.

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at https://order.mysql.com
Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
root@Admin:/usr/local/mysql# Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/Admin.pid
050416 10:41:52  mysqld ended
 
Old 04-17-2005, 01:17 PM   #5
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
Hi!

You must have an readme or install file after you unpack the mysql-arhive, mine is called "INSTALL-BINARY" in MySQL 4.1
Usually you install the MySQL server with these commands:
Code:
groupadd mysql
useradd -g mysql mysql
cd /usr/local
gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf -
ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql
cd mysql
scripts/mysql_install_db --user=mysql
chown -R root  .
chown -R mysql data
chgrp -R mysql .
bin/mysqld_safe --user=mysql &
Now set a password for root:
Code:
mysqladmin -u root password <newpassword>
To set now a "user" who's a superuser you have to do this
Code:
shell> mysql --user=root -p <root_password>

mysql> GRANT ALL PRIVILEGES ON *.* TO amer@localhost
-> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
mysql> GRANT ALL PRIVILEGES ON *.* TO amer@'%'
-> IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
MySQL documentation

Hope this helped!
Boby
 
Old 04-17-2005, 02:12 PM   #6
Greg Haynes
Member
 
Registered: Oct 2004
Location: Houston, TX
Distribution: Gentoo
Posts: 30

Rep: Reputation: 15
if there a reason your using a beta release? youll prolly have alot easier time with a 4.1 release or something along those lines. Making the jump to the mysql 5 is a big deal because they are attempting to have all sorts of database layer features, somewhat like PostgreSQL.
 
Old 04-18-2005, 07:32 AM   #7
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
This is the error I get.

root@Admin:/usr/local/mysql# mysqladmin -u root password <password Here>
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysql/mysql.sock' exists!
 
Old 04-18-2005, 07:59 AM   #8
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
If you get this error, it means that your MySQL server is not running. Start it with the command
Code:
/path/to/mysql/bin/mysqld_safe --user=mysql &
You can copy the file "/path/to/mysql/support-files/mysql.server" to /etc/init.d/, then start, restart or stop the server from there with
Code:
/etc/init.d/mysql.server start
/etc/init.d/mysql.server restart
or
/etc/init.d/mysql.server stop
Options are "stop", "start", "restart".

Also you can set it now to start on each system boot.

Boby

Last edited by Boby; 04-18-2005 at 08:02 AM.
 
Old 04-18-2005, 08:21 AM   #9
amer_58
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2
Posts: 213

Original Poster
Rep: Reputation: 30
am lost, can you go a bit further with me,


First, this is what I get:
root@Admin:/usr/local/mysql# /bin/mysqld_safe --user=mysql &
[2] 3140
root@Admin:/usr/local/mysql# bash: /bin/mysqld_safe: No such file or directory
 
Old 04-18-2005, 09:34 AM   #10
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
Quote:
Originally posted by amer_58
am lost, can you go a bit further with me
Sure, that's why we're here on the forum
Quote:
First, this is what I get:
root@Admin:/usr/local/mysql# /bin/mysqld_safe --user=mysql &
[2] 3140
root@Admin:/usr/local/mysql# bash: /bin/mysqld_safe: No such file or directory
I think you have done this
Code:
cd /usr/local/mysql
/bin/mysqld_safe --user=mysql &
In this case you change directory to "/usr/local/mysql" and when you try to run the command "/bin/mysqld_safe --user=mysql &" it will try to run the command from "/bin" [root filesystem > /bin], not "/usr/local/mysql/bin". [hope you understand what I mean]

You can try one of the following:
command with full path
Code:
/usr/local/mysql/bin/mysqld_safe --user=mysql &
or you can try to "cd" to mysql folder and swith to folder "bin" inside it
Code:
cd /usr/local/mysql
bin/mysqld_safe --user=mysql &
You see in this last case we have no "/" before "bin", it will go a folder forward from the mysql folder.

Good luck!
Boby

Last edited by Boby; 04-18-2005 at 09:38 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Server Software redhatrosh Programming 4 03-29-2005 07:50 AM
Migrating from MS-SQL server to My-SQL emailssent Linux - Networking 2 02-07-2005 02:20 PM
Which SQL is suitable for EMbedded SQL on C? hk_michael Programming 4 01-10-2005 05:07 PM
My SQL and M$SQL ikw38 Linux - Software 2 07-03-2003 01:45 PM
sql k3v0 Linux - Software 2 12-26-2002 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration