Solved

Login to mySql

Posted on 2015-01-14
6
135 Views
Last Modified: 2015-04-15
Trying to access mySql running on virtualbox/Fedora.
Is there some other command to get from os into mysql environment?


[root@localhost init.d]# ./mysql restart
Shutting down MySQL.. SUCCESS!
Starting MySQL. SUCCESS!
[root@localhost init.d]# vi R*
[root@localhost init.d]# ./mysql status
 SUCCESS! MySQL running (2615)
[root@localhost init.d]# ./mysql --user=root --password=t3es
Usage: mysql  {start|stop|restart|reload|force-reload|status}  [ MySQL server options ]
0
Comment
Question by:xoxomos
  • 3
  • 2
6 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40550580
The script in that directory is not the one you want.  Try it without the './' to get the 'mysql' monitor program.  You should be able to run this from any directory.
 mysql --user=root --password=t3es

Open in new window

0
 

Author Comment

by:xoxomos
ID: 40550604
[root@localhost ~]# pwd
/root
[root@localhost ~]# mysql --user=root --password=t3es
bash: mysql: command not found...
Packages providing this file are:
'community-mysql'
'mariadb'
[root@localhost ~]#
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 40550626
Interesting.  On my Ubuntu system, the 'mysql' monitor program is found in /usr/bin and it works with the login I showed above.  The login works with my Windows version also.  'mariadb' usually aliases the mysql program so it normally works with mariadb also.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 4

Expert Comment

by:Antyrael
ID: 40550669
I think you may need to install a package containing the MySQL client:
yum install community-mysql
0
 

Author Comment

by:xoxomos
ID: 40551717
Thanks.  I'm getting 'file /usr/bin/mysql_plugin from install of community-mysql-5-6-21-5...................conflicts with file from package mySql-server-5.6.22................'
Does this mean i need to un-rpm the mysql-server -5.6.22 and install a mySql that is more 5-6-21?
0
 

Author Comment

by:xoxomos
ID: 40551748
Install  1 Package (+1 Dependent package)

Total download size: 6.5 M
Installed size: 39 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): community-mysql-5.6.21-5.fc21.x86_64.rpm             | 6.4 MB  00:10    
(2/2): community-mysql-common-5.6.21-5.fc21.x86_64.rpm      |  86 kB  00:00    
--------------------------------------------------------------------------------
Total                                              593 kB/s | 6.5 MB  00:11    
Running transaction check
Running transaction test


Transaction check error:
  file /usr/bin/my_print_defaults from install of community-mysql-5.6.21-5.fc21.x86_64 conflicts with file from package MySQL-server-5.6.22-1.linux_glibc2.5.x86_64
  file /usr/bin/mysql_plugin from install of community-mysql-5.6.21-5.fc21.x86_64 conflicts with file from package MySQL-server-5.6.22-1.linux_glibc2.5.x86_64
  file /usr/share/man/man1/my_print_defaults.1.gz from install of community-mysql-5.6.21-5.fc21.x86_64 conflicts with file from package MySQL-server-5.6.22-1.linux_glibc2.5.x86_64
  file /usr/share/man/man1/mysql_plugin.1.gz from install of community-mysql-5.6.21-5.fc21.x86_64 conflicts with file from package MySQL-server-5.6.22-1.linux_glibc2.5.x86_64

Error Summary
-------------
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
Creating and Managing Databases with phpMyAdmin in cPanel.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question