Yingruoyuan
V2EX  ›  macOS

请教下在 macos 下配置 mysql,怎样改变默认的数据存储路径到自己指定的一个路径下?

  •  
  •   Yingruoyuan · Oct 20, 2017 · 2558 views
    This topic created in 3133 days ago, the information mentioned may be changed or developed.

    如题,尝试了在 /etc/my.cnf 中修改

    [mysqld]
    basedir=/usr/local/mysql
    datadir=/new/path/to/data
    

    重启 mysql,没效果。 该怎么修改路径呢?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5265 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 07:19 · PVG 15:19 · LAX 00:19 · JFK 03:19
    ♥ Do have faith in what you're doing.