PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : mysql geht nur localhost



localhost
23.04.03, 09:37
meine mysql geht nur local man hatt mir gesagt ich müsste in der /etc/my.conf was ender aber was ??

# You can copy this to one of:
# /etc/mysql/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options (in this
# installation this directory is /www-data/mysql) or
# ~/.my.cnf to set user-specific options.
#
# One can use all long options that the program supports.
# Run the program with --help to get a list of available options

# This will be passed to all mysql clients
[client]
#password = my_password
port = 3306
socket = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

[safe_mysqld]
err-log = /var/log/mysql/mysql.err

[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
#
# You can also put it into /var/log/mysql/mysql.log but I leave it in /var/log
# for backward compatibility. Both location gets rotated by the cronjob.
#log = /var/log/mysql/mysql.log
log = /var/log/mysql.log
basedir = /usr
datadir = /www-data/mysql
tmpdir = /tmp
language = /usr/share/mysql/english
skip-locking
#
# The skip-networkin option will no longer be set via debconf menu.
# You have to manually change it if you want networking i.e. the server
# listening on port 3306. The default is "disable" - for security reasons.
skip-networking
set-variable = key_buffer=16M
set-variable = max_allowed_packet=1M
set-variable = thread_stack=128K
#
# Here you can see queries with especially long duration
#log-slow-queries = /var/log/mysql/mysql-slow.log
#
# The following can be used as easy to replay backup logs or for replication
#server-id = 1
#log-bin = /var/log/mysql/mysql-bin.log
#binlog-do-db = include_database_name
#binlog-ignore-db = include_database_name
#
# Read the manual if you want to enable InnoDB!
skip-innodb

[mysqldump]
quick
set-variable = max_allowed_packet=1M

[mysql]
#no-auto-rehash # faster start of mysql but no tab completition

[isamchk]
set-variable = key_buffer=16M

joey.brunner
23.04.03, 09:48
definiere dein problem mal genauer, du kansnt dich nur von lokal drauf connecten ?

was ist wenn du remote versuchst? bekommst ne fehlermeldung oder ist der port nicht auf

wenn du ne fehlermeldung bekommst musst du deinen hsot in die mysql tabelle eintragen

joey

netzmeister
23.04.03, 09:50
Hallo,

einfach:

# listening on port 3306. The default is "disable" - for security reasons.
# skip-networking

auskommentieren!

Viele Grüße

Eicke

localhost
23.04.03, 11:21
init.d/mysql start
Starting MySQL database server: mysqld...failed.

kommt dan

Dr. Doo
23.04.03, 13:32
Hi,


Zusaetzlich musst Du in der mysql.user Datenbank dann auch eingestellen, dass
irgendein User von einem anderen Host, als 'localhost', aus auf Deinen Server zugreifen kann.

Melde Dich mal als 'root' am MySQL Server an (am besten ueber PhpMyAdmin) und
editiere Deinen gewuenschten User in mysql.user folgendermassen:

Host User Password
localhost alexander xxxxxxxxx ...

nach ->

Host User Password
% alexander xxxxxxxxx ...

% bedeutet hier, dass der entsprechende User von JEDEM Host aus auf den Server
zugreifen kann. Du kannst auch einen Hostname/IP einsetzen. Wildcards gehen auch in ordnung.

Dann noch 'mysqladmin -u root -p reload' damit die aenderungen wirksam werden.

localhost
23.04.03, 17:13
Das hab cih schon gemachtz bevor ich hier geschriben hab

localhost
23.04.03, 18:37
:-(