mariadb should just accept the sql backup of the old moodle install. The additional changes you would have to make that aren't covered in the instructions are to config.php to use the new mariadb details instead of the old mysql ones.
Oracle provides mysql packages for Debian, including Debian 9. -apt-repo-quick-guide/en/ The instructions from switching from a live mariadb setup to a mysql setup are fairly complicated. If you haven't started using mysql it might be a bit easier. I was able to switch from mariadb to mysql by running:
The main difference is that mysql is owned by Oracle, the bug tracker is closed (you have to pay for it) and for more useful features you need to buy the enterprise edition (aka open core). Distributions in general have therefore embraced mariadb.
I do believe when compatibility starts breaking with mysql, most will go for MariaDB. Also, for example, one of the biggest industry players on this market (cPanel) has long shifted to mariadb, so its safe to assume that currently there is a whole universe of customers and websites derived from this all using MariaDB. Just the user base of cPanel alone is too big to be neglectable and hosting software should have this present.
Signing on was a bit of a pain - mentioned instructions were overly stated. You just need mysql -u root -p for first time sign-in. Then prompted for password from the installation step. Signed in so listed databases:
LO , as mentioned, was installed. Moved over JRE 8u102 from Mint 18 and pointed to it in LO. Downloaded mariadb-java-client-1.5.7.jar - it would not work no matter what was done. Tried to get v1.5.3 but they wanted a sign in. Signed up but even when asking to v1.5.3 only 1.5.7 was offered.
MariaDB connector was my fault. I was trying to use com.mariadb.jdbc.Driver. org works fine. Also confirmed my suspicions - mariadb-java-client-1.5.7.jar can be located wherever wanted. I keep it in my home directory. Also confirmed MariaDB works with SQL Workbench/J (I use this more than any other). Good news as there is a lack of good tools (my opinion) for it in Linux.
While the following commands have "mysql" in their name, they're actually called the same even for MariaDB, something they haven't (yet?) changed since forking off of MySQL. It seems that for the foreseeable future they'll continue to use the same command names, though they did recently add a MariaDB-named symlink, at least.
Note: Even though this command is called mysqldump, it exists and works with both MariaDB and MySQL. This should be preinstalled in most common containers such as the official MariaDB and MySQL ones.
Then further down in the script, I remarked the section where it tried to install and configure the Mariadb repo (as this would supercede the changes we made earlier, configuring mysql to use 5.7, before running the installation script).
Hi, I've been searching all over the Internet on how to install get MySQL (pure) on Arch Linux. Almost alot of them all pointed to MariaDB instead, and I get that Arch Linux favors MariaDB, so I'm just asking, is it possible to install mysql-server? Because I know Ubuntu has it, but it doesn't seem like Arch Linux has any guide on installing vanilla MySQL. The AUR has one but it is mysql-client and not server
The MySQL / MariaDB dialects will normally transfer any keyword specified asmysql_keyword_name to be rendered as KEYWORD_NAME in theCREATE TABLE statement. A handful of these names will render with a spaceinstead of an underscore; to support this, the MySQL dialect has awareness ofthese particular names, which include DATA DIRECTORY(e.g. mysql_data_directory), CHARACTER SET (e.g.mysql_character_set) and INDEX DIRECTORY (e.g.mysql_index_directory).
The most common argument is mysql_engine, which refers to the storageengine for the table. Historically, MySQL server installations would defaultto MyISAM for this value, although newer versions may be defaultingto InnoDB. The InnoDB engine is typically preferred for its supportof transactions and foreign keys.
These character set introducers are provided by the DBAPI driver, assuming theuse of mysqlclient or PyMySQL (both of which are recommended). Add the querystring parameter binary_prefix=true to the URL to repair this warning:
The sqlalchemy.dialects.mysql.insert() function createsa sqlalchemy.dialects.mysql.Insert. This class is basedon the dialect-agnostic Insert construct which maybe constructed using the insert() function inSQLAlchemy Core.
mysql -V returns the version of the mysql client command used to access a MySQL server (here 15.1), as well as the version of MySQL (or MariaDB) it was distributed with, not (directly) the version of the server itself.
So far so good, but upgrading from 2023.2.x to 2023.3.x was a nightmare, upgrade got stuck with both HA and mariadb using over 100% CPU time forever.
Turned out to be related to invalid timestamps.
The first step is clear:
Create a new empty SQLite database first. Let HA do this for you by removing the recorder mariadb settings from the configuration.yaml. This is a very important step as explained in the Home Assistant 2023.4 Release Party.
NOTE: Be sure to include --complete-insert. It took me a while to understand this was not working because the order of fields was different between my grand-fathered mariadb and a brand new sqlite.
The strange fact here is not replacing mysql with mariadb because this is the default behavior since some years (maybe from opensuse 42)
the strange is that you replaced mariadb with mysql and you forgot it
While it is true that mariadb Obsoletes mysql and mysql-server-community Provides mysql, so mariadb replaces it, the package mysql-server-community 8.0.25-1.sl15 is not from openSUSE, so it has different vendor and I would not expect it to be removed without any warning.
I believe this is related to some recent changes in the latest versions of DBD::mysql that will limit new versions to only MySQL 8, so these new versions will not work with MySQL 5.7 and earlier, or MariaDB. For now, I think the easiest fix is to manually install an earlier version. The previous released version was DBD::mysql 4.052 which you can get it on CPAN. We will be looking at how to update the RT dependency checking to try to do the right thing based on the selected DB.
I had removed www/server/data and www/server/mysql folders from SSH, I was able to install MySQL again, but the databases are still appearing, which I want to remove too. I had tried to remove all databases by selecting them and deleting them, but there was error. How to remove those databases?
aaPanel_Jose I have removed /www/server/data and /www/server/mysql directories, reinstalled mysql, it did not start because there was permission error on mysql.sock file. Sorted out permissions. And mysql started to work again.
I had to downloaded the MySQL java connector (mysql-connector-java-5.1.30) rather than default OpenSuSE 1-click install YaST .ymp so I could add the .jar via preferences > knime > database driver as normal
I would suggest to set the JPA persistence binding into DEBUG logging mode.
In an other thread it was mentioned that the access rules on mysql server need to allow connections for openhab user.
Does the mysql server log show connection attempts ?
We have two MariaDB databases for public access:
Then try accessing the MySQL prompt again. If you still receive the socket error, double check the location where your MySQL installation is looking for the socket file. This information can be found in the mysqld.cnf file:
I want to run a query on a database and return the results in a reply to the message received in ChannelInboundHandler. Using mysql-kit I get a hang and crash at .simpleQuery(query).wait(). I've hacked a workaround with a .get() instead and a loop with a sleep. Not a good thing at all.
I have a MariaDB/MySQL cluster deployed in Kubernetes w/ Istio injection enabled in the namespace. The database cluster works fine. The primary server is running on port 3306 with mariadb-primary as the service name.
The service types mariadb and mysql both refer to MariaDB.The service type oracle-mysql refers to MySQL as released by Oracle, Inc.Other than the value for their type,MySQL and MariaDB have the same behavior and the rest of this page applies to both of them.
First, we'll use the mysql command-line tool to illustrate how to connect to the server. You can also use a web browser and Azure Cloud Shell without installing software. If you have the mysql utility installed locally, you also can connect from there.
I've got a system running a small MariaDB database. I put the mk_mysql check in the plugins directory, set up the mysql.cfg file and the check works. But occasionally it'll complain that it can't find the socket:
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/omd/sites/sitename/tmp/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/omd/sites/sitename/tmp/run/mysqld/mysqld.sock' exists!
@seancorfield. Thanks! I was actually not able to use the jdbc driver for MariaDB. Neither
:dbtype "mariadb" nor jdbc:mariadb://, even though I included [org.mariadb.jdbc/mariadb-java-client "2.7.2"] in my project.clj. So I used the mysql driver instead.
Refer to Release Notes and Oracle GoldenGate for MySQL documentation for complete information regarding instance and database requirements, including supported data types.
-whats-supported-mysql.html#GUID-6A22FBB5-540B-4DAA-8D76-990FB38C2B3B