duanmie9682 2012-11-27 14:02 采纳率: 100%
浏览 447
已采纳

在mac上安装mariaDB

I'm using mac ports to install the mariaDB with the following command:

sudo port install mariadb-server

After the file is installed, I have no idea what's going on next?

I try to find any configuration guidance but I failed, does anybody have some guidance for the next steps after installing from mac ports (like how to start and stop, configure etc)

  • 写回答

3条回答 默认 最新

  • duanchen7703 2013-04-27 18:34
    关注

    Install db

    sudo -u _mysql /opt/local/lib/mariadb/bin/mysql_install_db
    

    Change root password

    /opt/local/lib/mariadb/bin/mysqladmin -u root password 'new-password'
    

    Alternatively you can run:

    /opt/local/lib/mariadb/bin/mysql_secure_installation'
    

    You can start the MariaDB daemon with:

    cd /opt/local; /opt/local/lib/mariadb/bin/mysqld_safe --datadir='/opt/local/var/db/mariadb'
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler