I’m kind of new to LINUX and after a little research and problems with Ubuntu, I decided to use OPENSUSE where I find updated applications, easily accessable by YAST.
My problem is in the installation / configuration of MySQL and FIREBIRD ( plan to have the 2 for SQL studies , etc.) .
MYSQL PROBLEMS
In terminal
SU
PASSWORD
(like 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 = ok
ANONYMOUS UERS = withdrawn
ROOT LOGIN REMOTELY = withdrawn
TEST DB = withdrawn
TABLE PREVILEGES = reloaded
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
Opening such a file in a text editor I have the following (L = line and number thereof):
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 }
I 'm kind of new to LINUX and after a little research and problems with Ubuntu , I decided to use OPENSUSE where I find updated applications , easily accessable by YAST .
My problem is in the installation / configuration of MySQL and FIREBIRD ( plan to have the 2 for SQL studies , etc.) .
Opening such a file in a text editor I have the following (L = line and number thereof) :
In short , I’m no access to the database and the most annoying is that the same installation process worked in OPENSUSE 13.1 (but forgot the version of MySQL that was installed).
Does anyone know how to edit the file and where for the unary missing or how to change it to make it work somehow ?
PS : my OPT paste this 100 % empty if requesting viewing any file from there.
English version by Google.