VPS - MySQL

Message
Autor
vovicek
Příspěvky: 88
Registrován: 23 úno 2013, 18:30
Reputation: 0

Re: VPS - MySQL

#11 Příspěvekod vovicek » 12 dub 2019, 22:13

Při každém pokusu upravit config pomocí mc editoru dostanu toto hlášení:

Kód: Vybrat vše

E325: ATTENTION
Found a swap file by the name "/etc/mysql/mariadb.conf.d/.50-server.cnf.swp"
          owned by: root   dated: Fri Apr 12 19:40:21 2019
         file name: /etc/mysql/mariadb.conf.d/50-server.cnf
          modified: YES
         user name: root   host name: staff.zeddicraft.eu
        process ID: 3222
While opening file "/etc/mysql/mariadb.conf.d/50-server.cnf"
             dated: Wed Feb  6 05:53:10 2019

(1) Another program may be editing the same file.  If this is the case,
    be careful not to end up with two different instances of the same
    file when making changes.  Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /etc/mysql/mariadb.conf.d/50-server.cnf"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/mysql/mariadb.conf.d/.50-server.cnf.swp"
    to avoid this message.

Uživatelský avatar
Homi74
Příspěvky: 123
Věk: 49
Registrován: 04 led 2017, 11:09
Reputation: 15

Re: VPS - MySQL

#12 Příspěvekod Homi74 » 12 dub 2019, 22:48

Božínku :) a kdo Ti řek, že máš editovat tohle :shock:

tak že /etc/mysql/my.cnf ;)

vovicek
Příspěvky: 88
Registrován: 23 úno 2013, 18:30
Reputation: 0

Re: VPS - MySQL

#13 Příspěvekod vovicek » 12 dub 2019, 22:50

Homi74 píše:Božínku :) a kdo Ti řek, že máš editovat tohle :shock:

tak že /etc/mysql/my.cnf ;)


Jenže v /etc/mysql/my.cnf nemám "bind-address: ***"

Uživatelský avatar
Homi74
Příspěvky: 123
Věk: 49
Registrován: 04 led 2017, 11:09
Reputation: 15

Re: VPS - MySQL

#14 Příspěvekod Homi74 » 12 dub 2019, 23:00

tak to tam dopiš :)

bind-address = 0.0.0.0

edit: nebo tam máš jen
!includedir ?

vovicek
Příspěvky: 88
Registrován: 23 úno 2013, 18:30
Reputation: 0

Re: VPS - MySQL

#15 Příspěvekod vovicek » 12 dub 2019, 23:09

Homi74 píše:tak to tam dopiš :)

bind-address = 0.0.0.0

edit: nebo tam máš jen
!includedir ?



Tohle je obsah toho souboru.
Spoiler: zobrazit

Kód: Vybrat vše

# The MariaDB configuration file
#
# The MariaDB/MySQL tools read configuration files in the following order:
# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
# 2. "/etc/mysql/conf.d/*.cnf" to set global options.
# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
# 4. "~/.my.cnf" to set user-specific options.
#
# If the same option is defined multiple times, the last one will apply.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.

#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]

# Import all .cnf files from configuration directory
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/

Uživatelský avatar
Homi74
Příspěvky: 123
Věk: 49
Registrován: 04 led 2017, 11:09
Reputation: 15

Re: VPS - MySQL

#16 Příspěvekod Homi74 » 12 dub 2019, 23:13

Kód: Vybrat vše

# The MariaDB configuration file
#
# The MariaDB/MySQL tools read configuration files in the following order:
# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults,
# 2. "/etc/mysql/conf.d/*.cnf" to set global options.
# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options.
# 4. "~/.my.cnf" to set user-specific options.
#
# If the same option is defined multiple times, the last one will apply.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.

#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]

# Import all .cnf files from configuration directory
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/
[mysqld]   
bind-address = 0.0.0.0

vovicek
Příspěvky: 88
Registrován: 23 úno 2013, 18:30
Reputation: 0

Re: VPS - MySQL

#17 Příspěvekod vovicek » 12 dub 2019, 23:31

Znovu mi to vyhazuje chybu při pokusu o přepsání toho souboru, já mám přístup pouze ke čtení toho souboru..

Kód: Vybrat vše

E325: ATTENTION
Found a swap file by the name "/etc/mysql/.mariadb.cnf.swp"
          owned by: root   dated: Fri Apr 12 21:29:15 2019
         file name: /etc/mysql/my.cnf
          modified: YES
         user name: root   host name: staff.zeddicraft.eu
        process ID: 4653 (still running)
While opening file "/etc/mysql/my.cnf"
             dated: Wed Feb  6 05:53:10 2019

(1) Another program may be editing the same file.  If this is the case,
    be careful not to end up with two different instances of the same
    file when making changes.  Quit, or continue with caution.
(2) An edit session for this file crashed.
    If this is the case, use ":recover" or "vim -r /etc/mysql/my.cnf"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/etc/mysql/.mariadb.cnf.swp"
    to avoid this message.

vovicek
Příspěvky: 88
Registrován: 23 úno 2013, 18:30
Reputation: 0

Re: VPS - MySQL

#18 Příspěvekod vovicek » 14 dub 2019, 13:52

Dokázal by mi prosím někdo nastavit MySQL na VPS? Klidně za to zaplatím.. Jen už nechci ztrácet čas čekáním na odpověď..

Uživatelský avatar
Homi74
Příspěvky: 123
Věk: 49
Registrován: 04 led 2017, 11:09
Reputation: 15

Re: VPS - MySQL

#19 Příspěvekod Homi74 » 16 dub 2019, 16:18

Trpělivost růže přináší :?:
Tak neztrácej čas čekáním a snaž se i něco naučit ;) nebo budeš stále čekat až to za tebe někdo udělá?

Mike8748
Příspěvky: 823
Registrován: 30 bře 2014, 10:05
Reputation: 28

Re: VPS - MySQL

#20 Příspěvekod Mike8748 » 18 dub 2019, 09:51

vovicek píše:Znovu mi to vyhazuje chybu při pokusu o přepsání toho souboru, já mám přístup pouze ke čtení toho souboru..


taková podstatná otázka.. když edituješ ten soubor, jsi přihlášen jako root (máš odpovídající práva) ?

pokud si přihlášen jen jako obyčejný uživatel tak je docela pochopitelné že ten soubor nemůžeš přepsat


Zpět na „VPS (Virtual private Server)“

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 4 hosti