HOST-X Help

Wikipedia

A compact wiki for email, FTP, MySQL, SSL, cron jobs, apps, statistics and more. Find step-by-step guides, tips and technical details here.

Create and connect a MySQL database
Wiki topic
Databases

Create and connect a MySQL database

Databases are needed for WordPress, shops, forums and custom PHP applications. You create a database name, database user and password, then enter these values in your application.

Steps

  1. 1 Click "MySQL" on the left, then "New database".
  2. 2 Choose database name, database user and password. Store all three values carefully.
  3. 3 Save. The database is ready immediately.
  4. 4 Enter the credentials in your application. The database host is always localhost.
  5. 5 Install phpMyAdmin from the apps section if you want to manage databases in the browser.

Connection details at a glance

DB host
localhost
DB port
3306
DB name
as created
DB user
as created
DB password
as set
phpMyAdmin URL
https://yourdomain.com/dbx/
Virtual X MySQL tab with fields for database name, username and password. The new database appears in the list after saving.
Virtual X MySQL tab with fields for database name, username and password. The new database appears in the list after saving.

Connect WordPress (wp-config.php)

  1. 1 Rename wp-config-sample.php to wp-config.php.
  2. 2 Open wp-config.php via FTP or a file manager.
  3. 3 Set DB_NAME to the database name.
  4. 4 Set DB_USER to the database user.
  5. 5 Set DB_PASSWORD to the database password.
  6. 6 Keep DB_HOST as localhost.
  7. 7 Save the file and open your domain in the browser to start the WordPress installer.

War dieser Inhalt hilfreich?

·
$_SESSION['usr']
$_SESSION['usr_id']
$_SESSION['role']
SESSION_NAME: hostx_session
current url: /wiki/mysql/en
fail login:
Document root: /home/httpd/www.host-x.de/htdocs
REMOTE_ADDR: 216.73.216.110
HTTP_REFERER:
SERVER_NAME: www.host-x.de
Page: wiki
SCRIPT_NAME: /index.php
SERVER_PROTOCOL: HTTP/2.0