Using MySQL


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Using MySQL
# 1  
Old 11-12-2010
Using MySQL

Hello.
I am using ubuntu linux and I have instaled on it mySQL.

The problem is that it doesn't add link to it in the application menu.

Hod I use from the CLI, and second how to add it to the application menu.
# 2  
Old 11-12-2010
You might want to read up on MySQL. It's a RDBMS that runs as a daemon in the background, and as such will never appear in the application menu. Instead you can administer it from the CLI using the mysqladmin and the mysql commands, or graphically using MySQL Workbench or phpMyAdmin.
This User Gave Thanks to pludi For This Post:
# 3  
Old 11-12-2010
Quote:
Originally Posted by pludi
You might want to read up on MySQL. It's a RDBMS that runs as a daemon in the background, and as such will never appear in the application menu. Instead you can administer it from the CLI using the mysqladmin and the mysql commands, or graphically using MySQL Workbench or phpMyAdmin.
first thanks.

I have downloaded the manual and it say to do the following:
shell> mysql -h host -u user -p
so I wrote:
mysql -h Alex -u alex -p
It first asked for password, I gave it, then I got:
ERROR 2005 (HY000): Unknown MySQL server host 'alex' (1)


When I installed it, it didn't asked for any name for the server.
So how can I set name and make to know server host alex?

Last edited by programAngel; 11-12-2010 at 01:34 PM..
# 4  
Old 11-12-2010
Quote:
Originally Posted by programAngel
...When I installed it, ...
Where ? On "alex" or localhost ?

tyler_durden
# 5  
Old 11-12-2010
Quote:
Originally Posted by durden_tyler
Where ? On "alex" or localhost ?

tyler_durden
I installed on my computer (running ubuntu) and I run the command form there, so I guess it is localhost, but my user name (in ubuntu) is alex.
That is why I typed alex.
# 6  
Old 11-12-2010
Quote:
Originally Posted by programAngel
... but my user name (in ubuntu) is alex. That is why I typed alex.
"User name" is not the same as "host name" !!

A user is a live person (usually) and a host is a dead object (usually). Smilie

Run this command at the dollar-prompt -

Code:
mysql

and check the error message to see the user name and host name spewed by MySQL.

For local installation, you can omit the host name and just issue this command -

Code:
mysql -u root -p

and type in the password when prompted.

Thereafter, issue this command at the "mysql> " prompt -

Code:
select * from mysql.user;

to view the host and user information in MySQL's data dictionary.

tyler_durden
This User Gave Thanks to durden_tyler For This Post:
# 7  
Old 11-13-2010
Quote:
Originally Posted by durden_tyler
"User name" is not the same as "host name" !!

A user is a live person (usually) and a host is a dead object (usually). Smilie

Run this command at the dollar-prompt -

Code:
mysql

and check the error message to see the user name and host name spewed by MySQL.

For local installation, you can omit the host name and just issue this command -

Code:
mysql -u root -p

and type in the password when prompted.

Thereafter, issue this command at the "mysql> " prompt -

Code:
select * from mysql.user;

to view the host and user information in MySQL's data dictionary.

tyler_durden
thanks.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Programming

Mysql++

code: #include <mysql/mysql.h> #include <my_global.h> int main(int argc, char **argv) { MYSQL *conn; conn = mysql_init(NULL); mysql_real_connect(conn, "localhost", "zetcode", "passwd", "testdb", 0, NULL, 0); mysql_query(conn, "use vobd_db"); mysql_query(conn, "select *... (1 Reply)
Discussion started by: raj6
1 Replies

2. UNIX and Linux Applications

MySQL Daemon failed to start - no mysql.sock file

After doing a yum install mysql mysql-server on Fedora 14 I wasn't able to fully install the packages correctly. It installed MySQL 5.1. I was getting the following error when running the: mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)... (3 Replies)
Discussion started by: jastanle84
3 Replies

3. Red Hat

MySQL conflicts with mysql-3.23.58-16.RHEL3.1

I am tring to install mysql 5.0 on redhat linux3. In this server mysql 3 is already installed and hence while I install mysql 5 it gives the following error. How I can install mysql 5 with out affect previous installation? bash-2.05b# rpm -i MySQL-server-community-5.0.41-0.rhel3.i386.rpm... (2 Replies)
Discussion started by: johnveslin
2 Replies

4. UNIX for Advanced & Expert Users

mysql would not start: missing mysql.sock

I recently installed mysql-standard-5.0.21-solaris9-sparc-64bit.pkg on a Solaris 9 machine (SunOS 5.9 Generic_118558-19 sun4u sparc SUNW,Ultra-250). The package installation went very smooth, however, starting mysql is a different story. I get the message below everytime I try to start mysql: #... (2 Replies)
Discussion started by: xnightcrawl
2 Replies

5. UNIX for Advanced & Expert Users

Mysql

Is it my opinion, or Unix & Linux systems dislike me???? :) New problem I want to mysqldump a database from a Red Hat 9 mysql server, to a Solaris 7 mysql server. the problem is : Mysql server in Red Hat 9 is up and running. (Its the production server). I'm trying to mysqldump a... (3 Replies)
Discussion started by: kisoun
3 Replies

6. UNIX for Advanced & Expert Users

MySQL problem >> missing mysql.sock

MySQL on my server is down.... I figured out that the mysqld process isn't running. When I try to run it, it says it can't find mysql.sock Any suggestions? Here's what I can't do: can't be root don't have physical access (do stuff via SSH) reinstall MySQL (need to keep the current MySQL... (8 Replies)
Discussion started by: _hp_
8 Replies
Login or Register to Ask a Question