You are on page 1of 2

akses solaris from linux

sudo X -query ip :1
Where is the MySQL binaries
command: which mysql
What version of MySQL am I using
command: mysql -V
Start the MySQL server
command: /usr/bin/mysqld_safe --user=mysql &
Validate MySQL process has started
command: ps -afe | grep mysqld
Validate MySQL server is up and running
mysqladmin -u mysql ping
mysqladmin -u mysql status
command: mysql
mysql> SHOW VARIABLES LIKE "%version%";
* To start mysql server:
# /etc/init.d/mysqld start
* To stop mysql server:
# /etc/init.d/mysqld stop
* To restart mysql server
# /etc/init.d/mysqld restart
# service mysqld start
# service mysqld stop
# service mysqld restart
install
yum install mysql
remove
yum remove mysql
update
yum --enablerepo=centosplus update mysql

update password
/usr/bin/mysqladmin -u root password new-password
/usr/bin/mysqladmin -u root -h pandora.crib password new-password
show databases;
use nama_db;
show tables;
describe nama_table;
show columns from nama_table;
yum -y install httpd
/sbin/chkconfig httpd on
/sbin/service httpd start
/etc/init.d/httpd reload
==========================

hqsnux199:/etc$ uname -a
SunOS hqsnux199 5.9 Generic_117171-17 sun4u sparc SUNW,UltraAX-i2
hqsnux199:/etc$ isainfo -kv
64-bit sparcv9 kernel modules

[root@xldev ~]# which ls


alias ls='ls --color=tty'
/bin/ls
[root@xldev ~]# file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux
2.2.5, dynamically linked (uses shared libs), stripped
/var/lib/mysql/mysql.sock

You might also like