OPENSUSE-MYSQL

1. OPENSUSE-MYSQL

Douglas Silvestre
douglascast

(usa Manjaro Linux)

Enviado em 17/06/2015 - 17:38h

Galerinha, sou meio novo no LINUX e depois de pesquisar um pouco e achar a central de aplicativos do UBUNTU meio arcaica, decidi usar o OPENSUSE onde encontro softwares atualizados a pronta entrega pelo site ou YAST, resumindo, preguiça de ficar adicionando PPA toda hora.

Meu problema esta na instalação/configuração do MYSQL e FIREBIRD (pretendo ter os 2 para estudos SQL e etc).

No terminal eu digitei:
SU
SENHA

(logado como root)

ZYPPER IN MYSQL-COMMUNITY-SERVER MYSQL-COMMUNITY-SERVER-CLIENT

RCMYSQL START

RCMYSQL STATUS

mysql.service - MySQL server
Loaded: loaded (/usr/lib/systemd/system/mysql.service; disabled)
Active: active (running) since Wed 2015-06-17 17:28:25 BRT; 5s ago
Process: 7902 ExecStart=/usr/lib/mysql/rcmysql start (code=exited, status=0/SUCCESS)
Main PID: 8020 (mysqld_safe)
CGroup: /system.slice/mysql.service
├─8020 /bin/sh /usr/bin/mysqld_safe --mysqld=mysqld --user=mysql --pid-file=/var/run/mysql/mysqld.pid --socket=/var/run/mysql/mysql.sock --datadir=/var/lib/mysql
└─8212 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/linux-uifl.err --pid-file=/var/run/mysql/mysqld.pid --socket=/var/run/mysql/mysql.sock

Jun 17 17:28:24 linux-uifl rcmysql[7902]: Support MySQL by buying support/licenses at http://shop.mysql.com
Jun 17 17:28:24 linux-uifl rcmysql[7902]: New default config file was created as /usr/my.cnf and
Jun 17 17:28:24 linux-uifl rcmysql[7902]: will be used by default by the server when you start it.
Jun 17 17:28:24 linux-uifl rcmysql[7902]: You may edit this file to change server settings
Jun 17 17:28:24 linux-uifl rcmysql[7902]: WARNING: Default config file /etc/my.cnf exists on the system
Jun 17 17:28:24 linux-uifl rcmysql[7902]: This file will be read by default by the MySQL server
Jun 17 17:28:24 linux-uifl rcmysql[7902]: If you do not want to use this, either remove it, or use the
Jun 17 17:28:24 linux-uifl rcmysql[7902]: --defaults-file argument to mysqld_safe when starting the server
Jun 17 17:28:25 linux-uifl rcmysql[7902]: Starting service MySQL /usr/lib/mysql/rcmysql: line 40: test: -eq: unary operator expected
Jun 17 17:28:25 linux-uifl rcmysql[7902]: Something went wrong

/USR/BIN/MYSQL_SECURE_INSTALLATION

ROOT PASSWORD = configurado
ANONYMOUS UERS = retirado
ROOT LOGIN REMOTELY = retirado
TEST DB = retirado
TABLE PREVILEGES = relido

RCMYSQL STATUS

mysql.service - MySQL server
Loaded: loaded (/usr/lib/systemd/system/mysql.service; disabled)
Active: active (running) since Wed 2015-06-17 17:28:25 BRT; 4min 7s ago
Process: 7902 ExecStart=/usr/lib/mysql/rcmysql start (code=exited, status=0/SUCCESS)
Main PID: 8020 (mysqld_safe)
CGroup: /system.slice/mysql.service
├─8020 /bin/sh /usr/bin/mysqld_safe --mysqld=mysqld --user=mysql --pid-file=/var/run/mysql/mysqld.pid --socket=/var/run/mysql/mysql.sock --datadir=/var/lib/mysql
└─8212 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/linux-uifl.err --pid-file=/var/run/mysql/mysqld.pid --socket=/var/run/mysql/mysql.sock

Jun 17 17:28:24 linux-uifl rcmysql[7902]: Support MySQL by buying support/licenses at http://shop.mysql.com
Jun 17 17:28:24 linux-uifl rcmysql[7902]: New default config file was created as /usr/my.cnf and
Jun 17 17:28:24 linux-uifl rcmysql[7902]: will be used by default by the server when you start it.
Jun 17 17:28:24 linux-uifl rcmysql[7902]: You may edit this file to change server settings
Jun 17 17:28:24 linux-uifl rcmysql[7902]: WARNING: Default config file /etc/my.cnf exists on the system
Jun 17 17:28:24 linux-uifl rcmysql[7902]: This file will be read by default by the MySQL server
Jun 17 17:28:24 linux-uifl rcmysql[7902]: If you do not want to use this, either remove it, or use the
Jun 17 17:28:24 linux-uifl rcmysql[7902]: --defaults-file argument to mysqld_safe when starting the server
Jun 17 17:28:25 linux-uifl rcmysql[7902]: Starting service MySQL /usr/lib/mysql/rcmysql: line 40: test: -eq: unary operator expected
Jun 17 17:28:25 linux-uifl rcmysql[7902]: Something went wrong

Abrindo o tal arquivo no editor de texto tenho o seguinte (L = linha e numero da mesma):

L35 rc_check ()
L36 {
L37 _rc_status_ret=$?
L38 test "_rc_status_ret" || _rc_status_ret=0
L39 test $_rc_status_ret -eq 0 || _rc_status=$_rc_status_ret
L40 test $_rc_status -eq 0 || _rc_status_all=$_rc_status
L41 return 0$_rc_status_ret
L42 }

Resumindo sem acesso ao banco de dados por isso e o mais irritante é que o mesmo processo de instalação funcionava no OPENSUSE 13.1 (mas esqueci a versão do MYSQL que era instalada).

Alguém sabe como editar o arquivo e onde por o operador unário que falta ou como mudar ele para que funcione de algum modo?


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts