Linux - SoftwareThis 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
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 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 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
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;
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.
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!
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.