Zum Inhalt springen

MySQL Administrator funzt mit XAMPP nicht..


Empfohlene BeitrÀge

Geschrieben

Hallo,

ich wusste nicht genau ob ich das hier zu Datenbanken oder Linux packen soll also sorry wenn ichs im falschen Themenbereich gepostet habe..

Ich habe heute ausversehen eine Datenbank gelöscht.

Ich hab zwar ein aktuelles Backup aber das rĂŒcksichern ĂŒber PHPMyAdmin funzt nicht..

Da kommt dann immer

Kein SQL-Befehl!
Liegt daran das SQL Dateien bei PHPMyAdmin max. 2048 KB groß sein dĂŒrfen. Die Backupdatei ist insgesamt 18 MB groß.. Gespeichert sind darin fast außschließlich Dateien.. Die Tabellen einzeln importieren funzt auch nicht da Dateien dabei sind die ĂŒber 2 MB groß sind. Ich hab dann mal den MySQL Administrator installiert.. Allerdings kann ich keine Verbindung zur SQL Datenbank aufnehmen. Von meinem Windows Client aus kommt immer die Fehlermeldung:
MySQL Error Number 1130

#HY000Host 'rechnername' is not allowed to connect to this MySQL server
Also hab ich MySQL Administrator direkt auf dem Server installiert. Beim Server handelt es sich um einen Linuxserver mit Suse 9.3 und XAMPP. Wenn ich dort auf die SQL Datenbank verbinden will kommt immer folgende Meldung:
MySQL Error Number 2002

Can't connect to local MySQL server throug socket '/var/lib/mysql/mysql.sock' (2)

Ich vermute mal das beim Windows Client keine Verbindung möglich ist weil der Server das nicht zulÀsst. Aber wo kann ich das beim SQL Server von XAMPP Àndern?

Was die Meldung auf dem Linux Server betrifft bin ich ratlos..

Liegt das evtl. daran das SQL ĂŒber XAMPP lĂ€uft?

Geschrieben
Aber wo kann ich das beim SQL Server von XAMPP Àndern?

In der my.cnf. Normal ist die in /etc keine Ahnung ob die bei XAMPP evt wo anders liegt. Einfach "skip-networking" auskommentieren, dann sollte der Zugriff von außen klappen.

Geschrieben

So sieht meine my.cnf aus:

# Example mysql config file for medium systems.

#

# This is for a system with little memory (32M - 64M) where MySQL plays

# a important part and systems up to 128M very MySQL is used together with

# other programs (like a web server)

#

# You can copy this file to

# /etc/my.cnf to set global options,

# mysql-data-dir/my.cnf to set server-specific options (in this

# installation this directory is /opt/lampp/var/mysql) or

# ~/.my.cnf to set user-specific options.

#

# One can in this file use all long options that the program supports.

# If you want to know which options a program support, run the program

# with --help option.


# The following options will be passed to all MySQL clients

[client]

password	= passwort

port		= 3306

socket		= /opt/lampp/var/mysql/mysql.sock


# Here follows entries for some specific programs


# The MySQL server

[mysqld]

# commented out by lampp security

port		= 3306

socket		= /opt/lampp/var/mysql/mysql.sock






skip-locking

set-variable	= key_buffer=16M

set-variable	= max_allowed_packet=1M

set-variable	= table_cache=64

set-variable	= sort_buffer=512K

set-variable	= net_buffer_length=8K

set-variable	= myisam_sort_buffer_size=8M

# log-bin deactivated by default since XAMPP 1.4.11

#log-bin

server-id	= 1


# Point the following paths to different dedicated disks

tmpdir		= /tmp/		

#log-update 	= /path-to-dedicated-directory/hostname


# Uncomment the following if you are using BDB tables

#set-variable	= bdb_cache_size=4Mskip-networking

#set-variable	= bdb_max_lock=10000


skip-innodb

# Uncomment the following if you are using InnoDB tables

#innodb_data_home_dir = /opt/lampp/var/mysql/

#innodb_data_file_path = ibdata1:10M:autoextend

#innodb_log_group_home_dir = /opt/lampp/var/mysql/

#innodb_log_arch_dir = /opt/lampp/var/mysql/

# You can set .._buffer_pool_size up to 50 - 80 %

# of RAM but beware of setting memory usage too high

#set-variable = innodb_buffer_pool_size=16M

#set-variable = innodb_additional_mem_pool_size=2M

# Set .._log_file_size to 25 % of buffer pool size

#set-variable = innodb_log_file_size=5M

#set-variable = innodb_log_buffer_size=8M

#innodb_flush_log_at_trx_commit=1

#set-variable = innodb_lock_wait_timeout=50


[mysqldump]

quick

set-variable	= max_allowed_packet=16M


[mysql]

no-auto-rehash

# Remove the next comment character if you are not familiar with SQL

#safe-updates


[isamchk]

set-variable	= key_buffer=20M

set-variable	= sort_buffer=20M

set-variable	= read_buffer=2M

set-variable	= write_buffer=2M


[myisamchk]

set-variable	= key_buffer=20M

set-variable	= sort_buffer=20M

set-variable	= read_buffer=2M

set-variable	= write_buffer=2M


[mysqlhotcopy]

interactive-timeout

Geschrieben

Mit welchen User versuchst du das denn?

Kann es sein das die Benutzerrechte fĂŒr den User nur auf Localhost begrenzt sind? Ansonsten versuche es mal als root.

Ich schieb den Thread doch mal zu den Datenbanken rĂŒber ;)

Geschrieben

Ja lag am SQL User root.. Der war nur auf localhost beschrÀnkt :D

Hab in der my.cnf noch EintrĂ€ge wegen der zugelassenen GrĂ¶ĂŸe verĂ€ndert und dann hats funktioniert..

Thx all

Dein Kommentar

Du kannst jetzt schreiben und Dich spÀter registrieren. Wenn Du ein Konto hast, melde Dich jetzt an, um unter Deinem Benutzernamen zu schreiben.

Gast
Auf dieses Thema antworten...

×   Du hast formatierten Text eingefĂŒgt.   Formatierung wiederherstellen

  Nur 75 Emojis sind erlaubt.

×   Dein Link wurde automatisch eingebettet.   Einbetten rĂŒckgĂ€ngig machen und als Link darstellen

×   Dein vorheriger Inhalt wurde wiederhergestellt.   Editor leeren

×   Du kannst Bilder nicht direkt einfĂŒgen. Lade Bilder hoch oder lade sie von einer URL.

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die grĂ¶ĂŸte IT-Community
rund um Ausbildung, Job, Weiterbildung fĂŒr IT-FachkrĂ€fte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard fĂŒr Fachinformatiker und IT-FachkrĂ€fte

×
×
  • Neu erstellen...