Articles of mariadb

将MySQL迁移到MariaDB之后,MariaDB事件调度程序不会启动。 忽略configuration文件

我已经将我的系统从Debian 8升级到了Debian 9。 Debian 8上的MySQL版本(升级前) – 5.5.58-0 + deb8u1-log(Debian) Debian 9上的MariaDB版本(升级后):10.1.26-MariaDB-0 + deb9u1 Debian 9.1 问题是,当我添加: [mysqld] event_scheduler = on 对于/etc/mysql/mariadb.conf.d/50-server.cnf并重新启动mysql服务器,事件调度程序仍然根据以下查询被禁用: SHOW VARIABLES WHERE VARIABLE_NAME = 'event_scheduler'; | event_scheduler | OFF | 有没有什么特别的mariadb解释为什么不开始?

CI和WordPress使用Nginx + PHP 7.1 + MariaDB缓慢查询数据库

问题 我使用Nginx 1.10.2 + PHP 7.1.10(php-fpm)+ MariaDB 10.1.28运行CentOS 7机器。 使用这台机器我服务于以下应用程序: 4x Laravel 5.x 10x MODx Revo 2.5.8 1x WordPress 4.8.3 2x CI 3.1.6 虽然我的Laravel和MODx Revo应用程序运行速度超快,没有任何问题,但我的状态监视器,缓慢的日志(PHP-FPM和MariaDB Slowlog)以及手动testing都certificate, 10请求我的Wordpress和CI应用程序3请求。 是非常缓慢(最慢5-7秒),而其他7个要求。 如预期般快速。 debugging/解决步骤 激活的php-fpm和mariadb的缓慢日志(> = 3秒):结果证实,只有我的CI和Wordpress应用程序在慢速日志中引起了条目。 在分析条目后,我可以将它们分为两类: cron / curl脚本 数据库交易 所以起初我禁用了所有的cron / curl脚本。 但状态监视器和手动testing对于这些应用程序仍然显示约5-7秒的缓慢请求。 这将其分解为数据库事务。 这里是例子: WordPress的 www-slow.log(PHP-FPM) [13-Nov-2017 09:44:09] [pool www] pid 24000 script_filename = /usr/share/nginx/www/wordpress/index.php […]

使用mariadb安装WordPress时出现错误“您的PHP安装似乎缺lessWordPress所需的MySQL扩展。”

rpm -e –nodeps mysql-libs yum install MariaDB-server 上面的命令帮我安装了mariadb,也安装了wordpress。 这是一个很大的帮助。 我现在的问题是当我重新启动服务器或重新启动Apache这里是错误: "Your PHP installation appears to be missing the MySQL extension which is required by WordPress." 我怎么解决这个问题?

更改MariaDB中的数据目录

我有个疑问 : mariadb是否支持从默认位置到另一个用户定义位置的datadirectory位置更改? 当Iam尝试通过编辑configuration文件my.ini的path来更改mariadb的datadir位置之后,重新启动mariadb服务,但无法启动。 只有默认的(安装)datadir位置工作。 与mysql一样成功地工作。 因为这是我怀疑的原因… 请任何人来帮助我从这个问题…(IAM尝试在Windows中)

MariaDB将最大数据库大小设置为1 GB

我在我的托pipe上使用MariaDB。 我想将数据库大小限制为1 GB。 如何在/etc/my.cnf中正确执行此操作?

无法停止Ubuntu Lucid上的MariaDB

在启动MariaDB 5.5时出现以下错误: InnoDB: Unable to lock /var/lib/mysql/ibdata1 在服务器重新启动运行MariaDB 5.1后,最初遇到这个错误。 已经进行了一些故障排除步骤,包括: 将MariaDB升级到5.5 移动和复制ib *文件 删除Apparmor(停止syn溢出错误) 我也收到其他错误,如: InnoDB: Could not open or create data files. InnoDB: If you tried to add new data files, and it failed here, InnoDB: you should now edit innodb_data_file_path in my.cnf back InnoDB: to what it was, and remove the new ibdata […]

MariaDB不升级,安装了2个版本

我有一台运行在Debian上的服务器,和MaraiDB和OwnCloud一起运行。 几天前,我想更新包,因为OwnCloud更新,但出了问题。 通常在这种情况下,我可能会尝试删除并再次安装有问题的软件包,但在不同的人使用的服务器上,它似乎不再是一个有效的解决scheme。 在这里你可以看到我的控制台输出: user@server:~$ sudo apt-get upgrade Reading package lists… Done Building dependency tree Reading state information… Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: libmariadbclient18 : Depends: libmysqlclient18 (= 10.0.4+maria-1~wheezy) but 10.0.5+maria-1~wheezy is installed libmysqlclient18 : Depends: libmariadbclient18 (= 10.0.5+maria-1~wheezy) but 10.0.4+maria-1~wheezy is […]

使用套接字时,MariaDB权限被拒绝

这里是我的问题的要点:我有一个Web应用程序,当数据库将主机设置为本地主机时,将不会连接,但是如果我使用地址127.0.0.1。 连接时PHP给我的错误是:“SQLSTATE [HY000] [2002]权限被拒绝”。 我知道该sockets是因为当我停止服务时,我得到“SQ:STATE [HY000] [2002]没有这样的文件或目录。 在terminalinput“ls -als / tmp”之后,我看到mysql.sock的权限是777。 任何想法,为什么我不能连接到套接字?

MariaDB 5.5和Ubuntu 13.10 – > 14.04升级

我在Ubuntu Server 13.10上安装了MariaDB(5.5.37 + maria-1〜saucy)。 然后我升级了Ubuntu到14.04 LTS。 升级过程已禁用MariaDB 5.5的存储库。 在dist-upgrade之后的sources.list的当前部分。 # deb http://mirrors.linsrv.net/mariadb/repo/5.5/ubuntu trusty main # disabled on upgrade to trusty # deb-src http://mirrors.linsrv.net/mariadb/repo/5.5/ubuntu saucy main 我如何保持未来的更新工作? 版本库configuration工具不提供用于Ubuntu 14.04的MariaDB 5.5。 即使它会,我不知道如何改变回购和保持更新工作。 我该怎么办? 谢谢

Maria db rpm安装错误

尝试在centos上安装Maria DB时出现以下错误 [root@server1 MariaDB]# rpm -i MariaDB-5.5.30-centos6-x86_64-common.rpm warning: MariaDB-5.5.30-centos6-x86_64-common.rpm: Header V3 DSA/SHA1 Signature, key ID 1bb943db: NOKEY file /etc/my.cnf from install of MariaDB-common-5.5.30-1.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64 file /usr/share/mysql/charsets/Index.xml from install of MariaDB-common-5.5.30-1.x86_64 conflicts with file from package mysql-libs-5.1.66-2.el6_3.x86_64