Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mysql in PHP

Empfohlene Antworten

Hallo,

Ich habe unter RedHat Linux einen Apache laufen.

Jetzt habe ich mir MySQL Server, Client und Libarys installiert.

Der MySQL client funktioniert. d.h. ich kann Datenbanken erstellen , tabellen anlegen etc.

Jetzt will ich in PHP auf die mysql datenbank ugreifen und such mir schon einen Wolf wo ich das finde.

in der php.ini steht:

[MySQL]

mysql.allow_persistent = On

mysql.max_persistent = -1

mysql.max_links = -1

mysql.default_port =

mysql.default_socket =

mysql.default_host =

mysql.default_user =

mysql.default_password =

wenn ich ein phpinfo() mache finde ich keinen extra mysql Punkt.

ein teil des Configure Command von phpinfo() lautet:

--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared'

also --width-mysql=shared,/usr

jedenfalls wenn ich in php ein mysql_connect mache kommt das er die funktion nicht kennt.

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/testweb/index.php on line 7

kann mir jemand sagen wie ich jetzt das mysql im php nutzen kann?

Danke

Hallo,

wie hast du php den installiert?

Hast du die Sourcen selber compiliert, dann musst du dem configure Skript sagen das die Mysql Erweiterungen ebenfalls compiliert werden sollen.

Wie steht in der Installationsanleitung.

Oder hast du ein fertiges Package installiert?

Dann solltest du mal schauen, ob es nicht auch ein Zusatz Package für die PHP Mysql Funktionen gibt.

Kenne jetzt Redhat nicht so genau, aber bei Debian ist es dasselbe, da werden auch die Core PHP Funktionen und die Mysql Erweiterungen in verschiedenen Packages gepflegt.

Gruß Jaraz

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.