Outils pour utilisateurs

Outils du site


bsd:bsfmar

Table des matières

MARIADB

10.2


pkg install mariadb102-server-10.2.26
 
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):
 
New packages to be INSTALLED:
	mariadb102-server: 10.2.26
	unixODBC: 2.3.7
	mariadb102-client: 10.2.26
 
Number of packages to be installed: 3
 
The process will require 242 MiB more space.
33 MiB to be downloaded.
 
Proceed with this action? [y/N]: y
[1/3] Fetching mariadb102-server-10.2.26.txz: 100%   31 MiB   4.7MB/s    00:07    
[2/3] Fetching unixODBC-2.3.7.txz: 100%  459 KiB 469.8kB/s    00:01    
[3/3] Fetching mariadb102-client-10.2.26.txz: 100%    1 MiB   1.4MB/s    00:01    
Checking integrity... done (0 conflicting)
[1/3] Installing unixODBC-2.3.7...
[1/3] Extracting unixODBC-2.3.7: 100%
[2/3] Installing mariadb102-client-10.2.26...
[2/3] Extracting mariadb102-client-10.2.26: 100%
[3/3] Installing mariadb102-server-10.2.26...
===> Creating groups.
Using existing group 'mysql'.
===> Creating users
Using existing user 'mysql'.
[3/3] Extracting mariadb102-server-10.2.26: 100%
=====
Message from mariadb102-client-10.2.26:
 
--
MariaDB respects hier(7) and doesn't check /etc and /etc/mysql for
my.cnf. Please move existing my.cnf files from those paths to
/usr/local/etc and /usr/local/etc/mysql.
=====
Message from mariadb102-server-10.2.26:
 
--
The default InnoDB storage engine is no longer XtraDB, check your
configuration and switch it to InnoDB
 
MariaDB respects hier(7) and doesn't check /etc and /etc/mysql for
my.cnf. Please move existing my.cnf files from those paths to
/usr/local/etc and /usr/local/etc/mysql.
 
This port does NOT include the mytop perl script, this is included in
the MariaDB tarball but the most recent version can be found in the
databases/mytop port
sudo service mysql-server start
Installing MariaDB/MySQL system tables in '/var/db/mysql' ...
OK
 
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
 
 
Two all-privilege accounts were created.
One is root@localhost, it has no password, but you need to
be system 'root' user to connect. Use, for example, sudo mysql
The second is root@localhost, it has no password either, but
you need to be the system 'root' user to connect.
After connecting you can set the password, if you would need to be
able to connect as any of these users with a password and without sudo
 
See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.
 
You can start the MariaDB daemon with:
cd '/usr/local' ; /usr/local/bin/mysqld_safe --datadir='/var/db/mysql'
 
You can test the MariaDB daemon with mysql-test-run.pl
cd '/usr/local/mysql-test' ; perl mysql-test-run.pl
 
Please report any problems at http://mariadb.org/jira
 
The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/
 
Starting mysql.
sudo service mysql-server status
mysql is running as pid 4244.
sudo /usr/local/bin/mysql_secure_installation
 
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
 
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
haven't set the root password yet, you should just press enter here.
 
Enter current password for root (enter for none): 
OK, successfully used password, moving on...
 
Setting the root password or using the unix_socket ensures that nobody
can log into the MariaDB root user without the proper authorisation.
 
You already have your root account protected, so you can safely answer 'n'.
 
Switch to unix_socket authentication [Y/n] y
Enabled successfully!
Reloading privilege tables..
 ... Success!
 
 
You already have your root account protected, so you can safely answer 'n'.
 
Change the root password? [Y/n] y
New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
 ... Success!
 
 
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.
 
Remove anonymous users? [Y/n] y
 ... Success!
 
Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.
 
Disallow root login remotely? [Y/n] y
 ... Success!
 
By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.
 
Remove test database and access to it? [Y/n] Y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!
 
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
 
Reload privilege tables now? [Y/n] Y
 ... Success!
 
Cleaning up...
 
All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.
 
Thanks for using MariaDB!

Important :
Le port mariadb55-client et mariadb55-server a été modifié pour respecter hier (7) et se comporter comme les ports mysql.
Par conséquent, mysql-server et mysql monitor refuseront de démarrer si my.cnf existe dans /etc ou /etc/mysql.
Si vous êtes concerné, veuillez déplacer /etc/my.cnf vers /usr/local/etc et / ou /etc/mysq /my.cnf vers /usr/local/etc/mysql.

sysrc mysql_enable="YES"
mysql_enable:  -> YES
 
service mysql-server start
Starting mysql.
 
service mysql-server status
mysql is running as pid 2276.

;-)

10.4


pkg install mariadb104-server
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):
 
New packages to be INSTALLED:
	galera26: 26.4.2_1
	mariadb104-client: 10.4.13_2
	mariadb104-server: 10.4.13_2
 
Number of packages to be installed: 3
 
The process will require 251 MiB more space.
34 MiB to be downloaded.
 
Proceed with this action? [y/N]: y
[1/3] Fetching mariadb104-server-10.4.13_2.txz: 100%   32 MiB   2.4MB/s    00:14    
[2/3] Fetching mariadb104-client-10.4.13_2.txz: 100%    1 MiB   1.4MB/s    00:01    
[3/3] Fetching galera26-26.4.2_1.txz: 100%  948 KiB 970.5kB/s    00:01    
Checking integrity... done (1 conflicting)
  - galera26-26.4.2_1 conflicts with galera-25.3.29 on /usr/local/bin/garbd
Checking integrity... done (0 conflicting)
Conflicts with the existing packages have been found.
One more solver iteration is needed to resolve them.
The following 4 package(s) will be affected (of 0 checked):
 
Installed packages to be REMOVED:
	galera: 25.3.29
 
New packages to be INSTALLED:
	galera26: 26.4.2_1
	mariadb104-client: 10.4.13_2
	mariadb104-server: 10.4.13_2
 
Number of packages to be removed: 1
Number of packages to be installed: 3
 
The process will require 248 MiB more space.
 
Proceed with this action? [y/N]: y
[1/4] Deinstalling galera-25.3.29...
[1/4] Deleting files for galera-25.3.29: 100%
[2/4] Installing mariadb104-client-10.4.13_2...
[2/4] Extracting mariadb104-client-10.4.13_2: 100%
[3/4] Installing galera26-26.4.2_1...
[3/4] Extracting galera26-26.4.2_1: 100%
[4/4] Installing mariadb104-server-10.4.13_2...
===> Creating groups.
Using existing group 'mysql'.
===> Creating users
Using existing user 'mysql'.
===> Creating homedir(s)
[4/4] Extracting mariadb104-server-10.4.13_2: 100%
=====
Message from mariadb104-client-10.4.13_2:
 
--
MariaDB respects hier(7) and doesn't check /etc and /etc/mysql for
my.cnf. Please move existing my.cnf files from those paths to
/usr/local/etc/mysql or /usr/local/etc. Sample
configuration files are provided in /usr/local/etc/mysql
and /usr/local/etc/mysql/conf.d.
 
This port does NOT include the mytop perl script, this is included in
the MariaDB tarball but the most recent version can be found in the
databases/mytop port
=====
Message from galera26-26.4.2_1:
 
--
Find the Galera Cluster documentation at
http://galeracluster.com/documentation-webpages/
=====
Message from mariadb104-server-10.4.13_2:
 
--
MariaDB respects hier(7) and doesn't check /etc and /etc/mysql for
my.cnf. Please move existing my.cnf files from those paths to
/usr/local/etc/mysql or /usr/local/etc. Sample
configuration files are provided in /usr/local/etc/mysql
and /usr/local/etc/mysql/conf.d.
 
This port does NOT include the mytop perl script, this is included in
the MariaDB tarball but the most recent version can be found in the
databases/mytop port

Erreurs

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
SQLSTATE[HY000] [1045] Access denied for user 'ffffroot'@'fbsd-1.home.lan' (using password: YES)
l'utilisateur 'ffroot' n'existe pas ou le mot de passe est mauvais dans le fichier connexion.php 
Fatal error: Uncaught PDOException: SQLSTATE[42S02]: Base table or view not found: 1932
le fichier php.ini n'existe pas, il suffit de le créer à partir du fichier php.production.ini existant.
 
service apache24 restart




Services Réseaux

bsd/bsfmar.txt · Dernière modification : de 127.0.0.1