PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : XAMPP - MySQL will nicht...



Seiten : [1] 2

anonymer1994
21.04.09, 22:38
Hallo!
Ich habe bereits überall im Internet gesucht und finde trotzdem keine lösung für mein Problem. Ich habe XAMPP 1.7.1, da apache über Yast installiert schon nicht funktionierte (openSUSE 11.1).
XAMPP funktioniert, php (5) auch, MySQL aber nicht.
Wenn ich lamp start eingebe kommt folgende meldung:

katze-linux:/home/felix # /opt/lampp/lampp start
Starte XAMPP fuer Linux 1.7.1...
XAMPP: Starte Apache mit SSL (und PHP5)...
XAMPP: Starte MySQL...
XAMPP: MySQL konnte nicht gestartet werden!
XAMPP: Starte ProFTPD...
XAMPP fuer Linux gestartet.
katze-linux:/home/felix #


bei startmysql kommt bezüglich mysql das gleiche.

Wenn ich es manuell versuche klappt es auch nicht.

katze-linux:/home/felix # /opt/lampp/bin/mysql.server start
Starting MySQL.Manager of pid-file quit without updating file. failed
katze-linux:/home/felix #


Habe versucht, auf php4 umzustellen, obwohl ich nicht weiß, was das gebracht hätte - leider giebt es den wohl bei version 1.7.1 nicht, warum weiß ich nicht.
Bitte um Hilfe


Anonymer

marce
22.04.09, 07:36
der MySQL-Server verrät Dir sicher im Logfile, warum er nicht starten will...

anonymer1994
23.04.09, 00:07
In mysql-log-rotate (richtig?) befindet sich folgender inhalt:

# This logname can be set in /etc/my.cnf
# by setting the variable "err-log"
# in the [safe_mysqld] section as follows:
#
# [safe_mysqld]
# err-log=/opt/lampp/var/mysql/mysqld.log
#
# If the root user has a password you have to create a
# /root/.my.cnf configuration file with the following
# content:
#
# [mysqladmin]
# password = <secret>
# user= root
#
# where "<secret>" is the password.
#
# ATTENTION: This /root/.my.cnf should be readable ONLY
# for root !

/opt/lampp/var/mysql/mysqld.log {
# create 600 mysql mysql
notifempty
daily
rotate 3
missingok
compress
postrotate
# just if mysqld is really running
if test -x /opt/lampp/bin/mysqladmin && \
/opt/lampp/bin/mysqladmin ping &>/dev/null
then
/opt/lampp/bin/mysqladmin flush-logs
fi
endscript
}


Die datei /opt/lampp/var/mysql/mysqld.log existiert nicht.

Anonymer

ThorstenHirsch
23.04.09, 00:21
Nein, das ist nicht die richtige Datei. Wenn du die richtige Datei gefunden hast, benutz doch bitte die CODE-tags, das sieht dann so aus:

ich steh im CODE-tag
...und ist besser lesbar.

oziris
23.04.09, 01:11
Logfiles befinden sich i.d.R. in /var/log/ , dafür ist es da.

Siehe auch:
http://www.pathname.com/fhs/pub/fhs-2.3.html#VARLOGLOGFILESANDDIRECTORIES
http://de.wikipedia.org/wiki/Filesystem_Hierarchy_Standard#Die_.2Fvar-Verzeichnisstruktur

HirschHeisseIch
23.04.09, 02:15
Nein, das ist nicht die richtige Datei. Wenn du die richtige Datei gefunden hast, benutz doch bitte die CODE-tags, das sieht dann so aus:

ich steh im CODE-tag
...und ist besser lesbar.

Hint für Thorsten:
[CODE]-Tag ;)

Und für den TE:
Entweder unter /var/log oder im Verzeichnis, wo auch der XAMPP liegt irgendwo...
Edit:
Oha... Steht ja sogar in der Logrotate-Config... /opt/lampp/var/mysql/

anonymer1994
23.04.09, 20:06
Erstmal danke für die vielen Antworten!

/opt/lampp/var/mysql/freeside.err-old


Status information:

Current dir: /opt/lampp/var/mysql/
Running threads: 0 Stack size: 196608
Current locks:
lock: 0x41c22000:

lock: 0x41c21fa0:


Key caches:
default
Buffer_size: 16777216
Block_size: 1024
Division_limit: 100
Age_limit: 300
blocks used: 7
not flushed: 0
w_requests: 0
writes: 0
r_requests: 36
reads: 7


handler status:
read_key: 4
read_next: 66
read_rnd 0
read_first: 5
write: 0
delete 0
update: 0

Table status:
Opened tables: 15
Open tables: 0
Open files: 0
Open streams: 0

Alarm status:
Active alarms: 0
Max used alarms: 1
Next alarm time: 0

Begin safemalloc memory dump:

End safemalloc memory dump.

Memory status:
Non-mmapped space allocated from system: 4784128
Number of free chunks: 24
Number of fastbin blocks: 0
Number of mmapped regions: 18
Space in mmapped regions: 151040000
Maximum total allocated space: 0
Space available in freed fastbin blocks: 0
Total allocated space: 4452568
Total free space: 331560
Top-most, releasable space: 110136
Estimated memory (with thread stack): 155824128



Events status:
LLA = Last Locked At LUA = Last Unlocked At
WOC = Waiting On Condition DL = Data Locked

Event scheduler status:
State : INITIALIZED
Thread id : 0
LLA : n/a:0
LUA : n/a:0
WOC : NO
Workers : 0
Executed : 0
Data locked: NO

Event queue status:
Element count : 0
Data locked : NO
Attempting lock : NO
LLA : init_queue:132
LUA : init_queue:142
WOC : NO
Next activation : never


auserdem sind noch folgende ordner in /opt/lampp/var/mysql

cdcol, mysql, myphpadmin, test

Wenn ich in mysql gehe, befinden sich dort folgende dateien:


columns_priv.frm help_keyword.frm proc.frm time_zone_leap_second.MYI
columns_priv.MYD help_keyword.MYD proc.MYD time_zone.MYD
columns_priv.MYI help_keyword.MYI proc.MYI time_zone.MYI
db.frm help_relation.frm procs_priv.frm time_zone_name.frm
db.MYD help_relation.MYD procs_priv.MYD time_zone_name.MYD
db.MYI help_relation.MYI procs_priv.MYI time_zone_name.MYI
event.frm help_topic.frm servers.frm time_zone_transition.frm
event.MYD help_topic.MYD servers.MYD time_zone_transition.MYD
event.MYI help_topic.MYI servers.MYI time_zone_transition.MYI
func.frm host.frm slow_log.CSM time_zone_transition_type.frm
func.MYD host.MYD slow_log.CSV time_zone_transition_type.MYD
func.MYI host.MYI slow_log.frm time_zone_transition_type.MYI
general_log.CSM ndb_binlog_index.frm tables_priv.frm user.frm
general_log.CSV ndb_binlog_index.MYD tables_priv.MYD user.MYD
general_log.frm ndb_binlog_index.MYI tables_priv.MYI user.MYI
help_category.frm plugin.frm time_zone.frm
help_category.MYD plugin.MYD time_zone_leap_second.frm
help_category.MYI plugin.MYI time_zone_leap_second.MYD


Leider lassen sich die dateien nicht mit einem Texteditor öffenen


Anonymer

marce
23.04.09, 20:11
und ein einfaches mysqld.log findet sich nicht?

ThorstenHirsch
23.04.09, 20:27
Hint für Thorsten:
[CODE]-Tag
Wow, dieses [NOPARSE] funktioniert ja sogar mit [NOPARSE]. :D

Thx.

anonymer1994
23.04.09, 21:32
@marce: nein, leider nicht...

Liegt es vielleicht an einem fehler in der version?
Wer von euch hat auser mir die 1.7.1?

HirschHeisseIch
23.04.09, 21:37
@marce: nein, leider nicht...

Liegt es vielleicht an einem fehler in der version?
Wer von euch hat auser mir die 1.7.1?

Nein, es liegt mit Sicherheit nicht an der Version.
(Bis auf oziris vielleicht) spreche ich hier mal einfach für alle, und behaupte, dass niemand von uns den XAMPP in *irgendeiner* Version in Benutzung hat, weil wir alle eine saubere Installation der einzelnen Dienste über den Paketmanager bevorzugen.

marce
23.04.09, 21:38
poste doch bitte mal die Ausgabe von

ls -la /opt/lampp/var/mysql/
und die MySQL-Konfig. Evtl. wirfst Du auch mal einen Blick in's normale Systemlog.

anonymer1994
23.04.09, 22:04
insgesamt 19
drwxr-xr-x 6 felix users 256 21. Apr 16:40 .
drwxr-xr-x 5 felix users 120 21. Apr 21:18 ..
drwx------ 2 felix users 120 23. Mär 2007 cdcol
-rw-r----- 1 felix users 1759 13. Apr 12:57 freeside.err-old
-rw-rw---- 1 nobody root 7106 21. Apr 16:40 katze-linux.err
drwx------ 2 felix users 2352 30. Dez 09:16 mysql
-rw-r--r-- 1 felix users 6 2. Dez 05:52 mysql_upgrade_info
drwx------ 2 felix users 960 25. Dez 2007 phpmyadmin
drwx------ 2 felix users 48 1. Feb 08:44 test


MySQL config /opt/lampp/etc/my.cnf


# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M - 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as 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.
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.

# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /opt/lampp/var/mysql/mysql.sock

# Here follows entries for some specific programs

# The MySQL server
[mysqld]
port = 3306
socket = /opt/lampp/var/mysql/mysql.sock
skip-locking
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M

# Where do all the plugins live
plugin_dir = /opt/lampp/lib/mysql/plugin/

# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking

# Replication Master Server (default)
# binary logging is required for replication
# log-bin deactivated by default since XAMPP 1.4.11
#log-bin=mysql-bin

# required unique id between 1 and 2^32 - 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1

# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) -
# the syntax is:
#
# CHANGE MASTER TO MASTER_HOST=<host>, MASTER_PORT=<port>,
# MASTER_USER=<user>, MASTER_PASSWORD=<password> ;
#
# where you replace <host>, <user>, <password> by quoted strings and
# <port> by the master's port number (3306 by default).
#
# Example:
#
# CHANGE MASTER TO MASTER_HOST='125.564.12.1', MASTER_PORT=3306,
# MASTER_USER='joe', MASTER_PASSWORD='secret';
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
# start replication for the first time (even unsuccessfully, for example
# if you mistyped the password in master-password and the slave fails to
# connect), the slave will create a master.info file, and any later
# change in this file to the variables' values below will be ignored and
# overridden by the content of the master.info file, unless you shutdown
# the slave server, delete master.info and restart the slaver server.
# For that reason, you may want to leave the lines below untouched
# (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 - 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id = 2
#
# The replication master for this slave - required
#master-host = <hostname>
#
# The username the slave will use for authentication when connecting
# to the master - required
#master-user = <username>
#
# The password the slave will authenticate with when connecting to
# the master - required
#master-password = <password>
#
# The port the master is listening on.
# optional - defaults to 3306
#master-port = <port>
#
# binary logging - not required for slaves, but recommended
#log-bin=mysql-bin


# 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
#bdb_cache_size = 4M
#bdb_max_lock = 10000

# Comment the following if you are using InnoDB tables
#skip-innodb
innodb_data_home_dir = /opt/lampp/var/mysql/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_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
innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 5M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

bmk
24.04.09, 09:53
also bei meiner XAMPP-Installation (Windows) liegt das logfile in dem Verzeichnis, in dem auch die Ordner für die mysql-Datenbanken liegen.
Sie beginnen mit den Rechnernamen und enden mit .err.

Also könnte die log-Datei "katze-linux.err" lauten, die gibt es ja wohl:


-rw-rw---- 1 nobody root 7106 21. Apr 16:40 katze-linux.err

Gruß bmk

anonymer1994
24.04.09, 19:46
@bmk: danke, habe die datei zuerst nicht erwähnt, da sie sich nicht öffnen ließ aber root kann alles.


090420 18:16:24 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
090420 18:16:24 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
090420 18:16:24 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
090420 18:16:24 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/katze-linux.pid ended
090420 18:21:14 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
090420 18:21:14 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
090420 18:21:14 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
090420 18:21:14 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/katze-linux.pid ended
090420 18:24:12 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
090420 18:24:12 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
090420 18:24:12 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
090420 18:24:12 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/katze-linux.pid ended
090421 13:56:09 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
090421 13:56:10 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
090421 13:56:10 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
090421 13:56:10 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/katze-linux.pid ended
090421 16:12:52 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
090421 16:12:52 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
090421 16:12:52 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
090421 16:12:52 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/katze-linux.pid ended
090421 16:18:26 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
090421 16:18:26 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
090421 16:18:26 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
090421 16:18:26 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/katze-linux.pid ended
090421 16:18:36 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
090421 16:18:36 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
090421 16:18:36 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
090421 16:18:36 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/katze-linux.pid ended
090421 16:20:05 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
090421 16:20:05 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
090421 16:20:05 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
090421 16:20:05 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/katze-linux.pid ended
090421 16:20:54 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
090421 16:20:54 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
090421 16:20:54 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
090421 16:20:54 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/katze-linux.pid ended
090421 16:39:15 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
090421 16:39:15 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
090421 16:39:15 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
090421 16:39:15 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/katze-linux.pid ended
090421 16:40:40 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
090421 16:40:40 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
090421 16:40:40 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
090421 16:40:40 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/katze-linux.pid ended
090423 17:45:07 mysqld_safe Starting mysqld daemon with databases from /opt/lampp/var/mysql
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
090423 17:45:08 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
090423 17:45:08 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.
090423 17:45:08 mysqld_safe mysqld from pid file /opt/lampp/var/mysql/katze-linux.pid ended

anonymer1994
24.04.09, 19:49
In der Dateo mysql_ubgrade_info befindet sich:

5.1.30

HirschHeisseIch
24.04.09, 19:59
/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
090423 17:45:08 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
090423 17:45:08 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.

Merkst was!?

anonymer1994
24.04.09, 21:31
Habe gerade nachgesehen, /opt/lampp/var/mysql/mysql/plugin.frm existiert.


/opt/lampp/sbin/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)

Soll die vielleicht unter /opt/lampp/sbin/mysqld liegen und ist hier falsch?
Oder wo muss die genau sein?
Habe der Datei auf jeden fall mal alle rechte gegeben - geht leider immer noch nicht.

>> Can't find file: './mysql/plugin.frm'

Wo ist denn "./" ?

oziris
24.04.09, 22:21
Hast Du auch auf das Verziechnis die nötigen Rechte vergeben bzw. diese kontrolliert? Es scheint mir nämlich, dass das daran liegen könnte.

UzumakiNaruto
25.04.09, 01:53
nein die frm ist eine tabelle aus der datenbank "mysql"

diese muss ich in /opt/lampp/var/mysql/mysql befinden und dem benutzer mysql gehören

anonymer1994
25.04.09, 14:29
@oziris: danke für deine Antwort, die rechte waren verstellt.
Leider geht es immer noch nicht...

@UzumakiNaruto: ist der Fall...

Wäre es auch möglich, ein anderes MySQL, eines das nicht in XAMPP gepflantzt ist, für XAMPP zu verwenden?

UzumakiNaruto
25.04.09, 16:38
jep ist möglich.

php ist das egal :D
pc name + port und gut ist ;)

wenn du dann schon soweit bist ... wieso installierst du dir dann nicht gleich alles selber?

dadurch lernst DU was .. und alles ist sauber ;)

anonymer1994
25.04.09, 17:13
Ich habe mir alles über Yast installiert. Leider hat auch das nicht funktioniert und da bin ich eben auf XAMPP ausgewichen.
Da hat nicht einmal php funktioniert...

Ich versuch es jetzt mal mit mySQL...

UzumakiNaruto
25.04.09, 20:32
dann hast du wohl einige pakete vergessen.

bedenke das dir linux apache und apache2 anbietet .. und du musst natürlich die entsprechenden module mit installieren

für apache/2 das php 4/5 modul und für php das mysql modul ;)

anonymer1994
26.04.09, 17:20
@UzumakiNaruto: habe apache2

Ich habe einfach in yast apache2, php5 und mysql installiert, yast hat sich dann einfach noch 10.000 benötigte pakete dazugenommen und ich habe das ganze installiert...

Oder würde es funktionieren, wenn ich das ganze aus den Sourcen compilliere? Oder würde das keinen unterschied machen?


Felix

oziris
26.04.09, 18:47
Ich weiß nicht genau, wie das bei Suse ist, aber PHP5 gibt es eigentlich als Shell-Variante und als Modul für den Apache2...

Aus den Sourcen compilieren sollte immer zweite Wahl sein, weil man sich dann selbst um Abhängigkeiten und Updates kümmern muss. Auch das entfernen selbst compilierter Software kann schwierig werden, besonders wenn man kein Prefix-Verzeichnis angegeben hat und die Sourcen verloren gehen und nicht mehr zu bekommen sind. Außerdem kann es zu Konflikten mit anderen Paketen kommen und dann kann es z.B. passieren, dass Dateien überschrieben werden, weil der Paketmanager die Dateien aus den Sourcen nicht kennt.
Kurz gesagt: Das ist mehr was für Profis, die z.B. eine ganz spezielle Variante einer Software benötigen.

UzumakiNaruto
26.04.09, 19:45
@UzumakiNaruto: habe apache2

Ich habe einfach in yast apache2, php5 und mysql installiert, yast hat sich dann einfach noch 10.000 benötigte pakete dazugenommen und ich habe das ganze installiert...

Oder würde es funktionieren, wenn ich das ganze aus den Sourcen compilliere? Oder würde das keinen unterschied machen?


Felix

vom kompilieren würde ich auch abraten :D

ich habe damals (nutze jetzt debian) auch im yast einfach apache2, mysql und php5 ausgewählt ... danach kam alles andere mit hinter her.

bmk
27.04.09, 13:56
ich glaube, der Fehler liegt eher beim innodb:


InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
InnoDB: File name /opt/lampp/var/mysql/ibdata1
InnoDB: File operation call: 'create'.
InnoDB: Cannot continue operation.


mysqld sollte in die Dateien ib_logfile0, ib_logfile1 und ibdata1 schreiben können.

Falls innodb (Transaktionssicherheit -> de.wikipedia.org/wiki/InnoDB) nicht benötigt wird, kann es auch deaktiviert werden:

Vor den innodb-Einträgen in der my.cnf aktivieren (# entfernen):

skip-innodb

vielleicht klappt es dann

anonymer1994
27.04.09, 21:35
@bmk: " ib_logfile0, ib_logfile1 und ibdata1" existieren nicht...

Die rechte für das Verzeichniss sind gesetzt...

Soll ich skip-innodb einfach bei /opt/lampp/etc/mycnf hinzufügen?
Oder wie soll ich das verstehen?

Das mit dem kompillieren fällt dann weg...

bmk
27.04.09, 22:35
nur in der MySQL config /opt/lampp/etc/my.cnf
das '#' vor skip-innodb entfernen, dann werden die innodb-Einstellungen übersprungen, vielleicht geht es dann ...