Database Startup Methods After Reinstalling the System
7/8/21Less than 1 minute
Mysql
- Add the bin folder to the environment variables, or enter the bin file directory
- Install MySQL service
mysqld --install MySQL --defaults-file=D:\mysql-5.6.22-winx64\my.ini- Start MySQL service
Reference link: https://www.cnblogs.com/1314wamm/p/6016370.html
PostgreSQL
- Add the bin folder to the environment variables, or enter the bin file directory
- Command to start postgreSQL
pg_ctl.exe start -D ..\data- Command to register postgreSQL as a service
pg_ctl.exe register -N "pgsql" -D ..\data- Start the service
net start pgsqlReference link: https://blog.csdn.net/ywg_1994/article/details/82391531
AI Translation | AI 翻译
This article was translated from Chinese to English by AI. If there are any inaccuracies, please refer to the original Chinese version.
本文由 AI 辅助从中文翻译为英文。如遇不准确之处,请以中文原版为准。
