Creating a Database for Joomla!/nl: Difference between revisions

From Joomla! Documentation

Created page with "===Een gebruiker en wachtwoord aanmaken voor de database==="
Created page with "===Gebruikersrechten instellen==="
Line 17: Line 17:


===Een gebruiker en wachtwoord aanmaken voor de database===
===Een gebruiker en wachtwoord aanmaken voor de database===
Once you have created a database, you now need a 'database user' to access it. This step will create a user and the user's password at the same time. The username for a database will be similar in look to the database name. You can actually use the name of the database for the user, but for security, you should use a unique username with a strong password.
Wanneer je een database hebt gemaakt heb je een 'database gebruiker' nodig om toegang te krijgen. In deze stap maak je de gebruiker en het wachtwoord gelijktijdig aan. De gebruikersnaam voor de database ziet er ongeveer hetzelfde uit als de naam van de database. Je kan dezelfde naam gebruiken, maar in verband met veiligheid kan je beter een unieke gebruikersnaam kiezen met een sterk wachtwoord.


[[File:cPanel-create-MySQL-user-en.png]]
[[File:cPanel-create-MySQL-user-en.png]]


===Set the User Privileges===
===Gebruikersrechten instellen===
The last task to creating a database for Joomla! is to give your database user privileges(permissions) to interact with your database. These privileges give your user the ability to create database tables, drop them(delete), alter, index and a variety of other interactive tasks.
The last task to creating a database for Joomla! is to give your database user privileges(permissions) to interact with your database. These privileges give your user the ability to create database tables, drop them(delete), alter, index and a variety of other interactive tasks.



Revision as of 11:33, 26 August 2023

Voor iedere installatie van het Joomla! CMS heb je een database nodig. In de database wordt informatie opgeslagen zoals artikelen, menu's, categorieën en gebruikers. Deze informatie is nodig om je Joomla! website te maken en beheren. Ongeacht de technische eisten van de versie moet je een werkende database, database gebruiker en wachtwoord hebben om Joomla! te installeren. Deze gebruiker moet ook je juiste rechten hebben. Dit moet je regelen voor je kan beginnen met de installatie. In dit artikel wordt de MySQL database besproken. Dit is het meeste gangbare type database dat gebruikt wordt bij het installeren van Joomla!.

MySQL DB Wizard

Voor beginners wordt aangeraden de MySQL database wizard te gebruiken. Deze wizard leidt je stap voor stap door het proces. Je kan deze stappen gebruiken om je door je eigen hosting account controlepaneel te leiden, als deze anders werkt. Dit zijn:

Database aanmaken → Gebruiker aanmaken → Wachtwoord voor de gebruiker instellen → Rechten van de gebruiker instellen.

Activeer de wizard door op het icoon te klikken in het cPanel van je hosting account.

Een database aanmaken

Nu moetje een naam kiezen voor je database. In een gedeelde hosting omgeving wordt de naam van de database vaak voorafgegaan door de gebruikersnaam van jouw hosting account en dan een id die je zelf opgeeft. Bijvoorbeeld, als je hosting accounts gebruikers naam B1234 is, kan je database naam iets zijn als B1234_joomla.

Een gebruiker en wachtwoord aanmaken voor de database

Wanneer je een database hebt gemaakt heb je een 'database gebruiker' nodig om toegang te krijgen. In deze stap maak je de gebruiker en het wachtwoord gelijktijdig aan. De gebruikersnaam voor de database ziet er ongeveer hetzelfde uit als de naam van de database. Je kan dezelfde naam gebruiken, maar in verband met veiligheid kan je beter een unieke gebruikersnaam kiezen met een sterk wachtwoord.

Gebruikersrechten instellen

The last task to creating a database for Joomla! is to give your database user privileges(permissions) to interact with your database. These privileges give your user the ability to create database tables, drop them(delete), alter, index and a variety of other interactive tasks.

  • If you are not using the database creation wizard. Privileges are usually included in the assignment of a database user to a database. This work flow is Create db → Create db User → Assign a db User to a db(including privileges).

Finishing Up

After you complete all the steps of the database wizard, you will see the summary of the final results.

Write down the following information for use in your Joomla! installation.
  • Database name, example: D1234_joomla
  • Database user, example: D1234_juser
  • Database user's password
  • Note the location of the database. Usually, Localhost for a cPanel installation. Occasionally, a hosting account may have a database server completely separate from a user account's server for physical files. Instead of Localhost the database server may actually be a URL type of address, dbserver10.hosting.com.

MariaDB using phpMyAdmin XAMPP on Localhost

Start by opening your XAMPP Control Panel and seeing that it works by going to http://localhost/ You should see the XAMPP welcome page with PHPInfo and phpMyAdmin in the top menu. Next, we will want to make our root user secure with a password. This can be done in your XAMPP console by opening the Shell and type in mysqladmin.exe -u root password secretpassword This will set the root to use a password. Obviously choose your own and not secretpassword. Make a note of it.

Now your phpMyAdmin will break so we need to fix that.

Navigate to your config.inc.php file which is most likely at

C:\xampp\phpMyAdmin\config.inc.php

On line 21

$cfg['Servers'][$i]['password'] = ' ';

You need to add your password. In our example it will look like this

$cfg['Servers'][$i]['password'] = 'secretpassword';

Now our phpMyAdmin should work we can use to to create a new user

Create a new database user using phpMyAdmin XAMPP on Localhost

Open phpMyAdmin from the link in the top menu of the XAMPP welcome page and once opened select User accounts in the top menu. Here you will see a page listing the users. Select the Add user account link which is just under the New label.

You will be asked for a User name and a Password and to retype the Password. For local development on your localhost, you can then check the Global privileges Check all box and select go in the bottom right corner.

Create a new database using phpMyAdmin XAMPP on Localhost

Now you have your user you can create a new database to add your tables to or allow Joomla to create it for you in the installation process. If you want to name your own then click the Databases tab. Fill in the name you would like to use spacing words with underscore so if you want "my database" enter my_database Select utf8_unicode_ci and hit Create

You now have a database, a user and a password and are all set to install Joomla!