Ruslan Polupan
Dec. 9, 2018, 3:12 p.m.

MySQL SuSe Leap 15 Initial Setup

Mysql is not installed in SuSe by default. Install MariaDB instead
Haven't felt any difference yet.

So the server is installed. Let's check if it is running in the system.
What I like SuSE from the first meeting is Yast.
Yast-System-Service Management
We find mariadb set to start at boot and start the service.
The service has started. The /var/log/mysql/mysql.log file appeared
In it we see that the service has started and is available only from 127.0.0.1
And it would be desirable to work with basis and from other machines.

Open file /etc/my.cf
Commenting out the line

  1. #bind-address = 127.0.0.1

We restart the service.

  1. service mariadb restart

Now you can connect to the server from anywhere.


Now we need a service user to work with the database
run mysql as root
run two commands

/ Create htuser user with SecretPassword password to work with glsheduler database /
/ Connect from localhost i.e. locally from the system where the database is running /
GRANT ALL PRIVILEGES ON glsheduler. TO htuser@localhost IDENTIFIED BY 'SecretPassword' WITH GRANT OPTION;
/
Access from any remote host /
GRANT ALL PRIVILEGES ON glsheduler.
TO htuser@"%" IDENTIFIED BY 'SecretPassword' WITH GRANT OPTION;

Connecting to MySQL with the user htuser

  1. rust@Leap15:~> mysql -u htuser -p
  2. Enter password:

enter password
And for verification, we create a database with which our user will work
CREATE DATABASE glsheduler;

By article asked0question(s)

1

Do you like it? Share on social networks!

Comments

Only authorized users can post comments.
Please, Log in or Sign up
  • Last comments
  • AK
    April 1, 2025, 11:41 a.m.
    Добрый день. В данный момент работаю над проектом, где необходимо выводить звук из программы в определенное аудиоустройство (колонки, наушники, виртуальный кабель и т.д). Пишу на Qt5.12.12 поско…
  • Evgenii Legotckoi
    March 9, 2025, 9:02 p.m.
    К сожалению, я этого подсказать не могу, поскольку у меня нет необходимости в обходе блокировок и т.д. Поэтому я и не задавался решением этой проблемы. Ну выглядит так, что вам действитель…
  • VP
    March 9, 2025, 4:14 p.m.
    Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
  • ИМ
    Nov. 22, 2024, 9:51 p.m.
    Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
  • Evgenii Legotckoi
    Oct. 31, 2024, 11:37 p.m.
    Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup