当前位置:网站首页>FATAL ERROR: Could not find ./ bin/my_ print_ Solutions to defaults
FATAL ERROR: Could not find ./ bin/my_ print_ Solutions to defaults
2022-06-29 00:06:00 【polarcoder】
Yes mysql During database initialization , There will be the following error messages :
1 2 3 4 5 6 7 | [[email protected] scripts]# ./mysql_install_db --user=mysqlFATAL ERROR: Could not find./bin/my_print_defaultsIf you compiled from source, you need to run 'make install'tocopy the software into the correct location ready foroperation.If you are using a binary release, you must either be at the toplevel of the extracted archive, or pass the --basedir optionpointing to that location. |
According to the error information , Go to mysql Installation directory bin Check whether there is _print_defaults, This file is found in the seventh line of the first column
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | [[email protected] bin]# lsinnochecksum mysql_client_test mysql_setpermissionmsql2mysql mysql_client_test_embedded mysqlshowmyisamchk mysql_config mysqlslapmyisam_ftdump mysql_convert_table_format mysqltestmyisamlog mysqld mysqltest_embeddedmyisampack mysqld_multi mysql_tzinfo_to_sqlmy_print_defaults mysqld_safe mysql_upgrademysql mysqldump mysql_waitpidmysqlaccess mysqldumpslow mysql_zapmysqlaccess.conf mysql_find_rows perrormysqladmin mysql_fix_extensions replacemysqlbinlog mysqlhotcopy resolveipmysqlbug mysqlimport resolve_stack_dumpmysqlcheck mysql_secure_installation |
It seems that there is no such document , It's not about it .
Check the error information carefully , Notice that that path is a relative path , In order to mysql The installation directory of is the starting directory .
Initialization is to run the script in the initialization script directory , In this directory, there will be no ./bin/my_print_defaults Of .
So go back to the installation directory and execute the initialization script with a relative path .
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | [[email protected] mysql]# ./scripts/mysql_install_db --user=mysqlInstalling MySQL system tables...OKFilling help tables...OKTo start mysqld at boot timeyou have to copysupport-files/mysql.server to the right place foryour systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !To doso, start the server, thenissue the following commands:./bin/mysqladmin-u root password 'new-password'./bin/mysqladmin-u root -h localhost.localdomain password 'new-password'Alternatively you can run:./bin/mysql_secure_installationwhichwill also give you the option of removing the testdatabases and anonymous user created by default. This isstrongly recommended forproduction servers.See the manual formore instructions.You can start the MySQL daemon with:cd . ; ./bin/mysqld_safe &You can testthe MySQL daemon with mysql-test-run.plcd ./mysql-test; perl mysql-test-run.plPlease report any problems with the ./bin/mysqlbugscript![[email protected] mysql]# |
OK! Successful initialization !
I hope it can help you
Reprinted from :http://huanglianfeng.blog.51cto.com/4813074/1372027
边栏推荐
- 12.物体检测Mask-Rcnn
- Yyds dry goods count 【 vs code work record III 】 set vs code format
- websocket-js连接如何携带token验证
- EditText监听焦点
- 【软件分析】软件分析、设计与建模迭代式详解
- stm32F407-------串行(串口)通信
- TypeScript -- 第一节:基础类型
- Is it reliable and safe to avoid five in case of stock trading account opening
- 【C Primer Plus第二章课后编程题】
- PHP uses endroid/qrcode QR code to generate, and Gd library generates sharing posters
猜你喜欢

随笔记:模拟类数组(array-like)的方法

Sword finger offer 12 Path in matrix

PHP uses endroid/qrcode QR code to generate, and Gd library generates sharing posters

The magical zero knowledge proof can not only keep secrets, but also make others believe you!

This thing is called a jump watch?

stm32F407-------通用定时器

Haskell 配置 VS code 开发环境 (2022年6月)

【LeetCode】21. Merge two ordered linked lists - go language solution

Stm32f407 ------ serial (serial port) communication

12.物體檢測Mask-Rcnn
随机推荐
每日一题:数组中数字出现的次数2
PHP函数file_get_contents与操作系统的内存映射
Stm32f407 ------- RTC real time clock
TypeScript--第五节:类
SQL note 2 [MySQL]
由背景图缓存导致的canvas绘图跨域问题
转载:VTK笔记-裁剪分割-三维曲线或几何切割体数据(黑山老妖)
小白创业做电商,选对商城系统很重要!
Stm32f407----- register address name mapping analysis
Stm32f407-------- NVIC interrupt priority management
ES6模块
Stm32f407------- general timer
Stm32f407 ------ clock system (systeminit clock initialization, systick tick timer)
Basic operation of MySQL database: import hellodb SQL and query as required; Create account and authorize
Haskell 配置 VS code 开发环境 (2022年6月)
在线买股票开户安全嘛?
Mysql的四种引擎介绍
12. object detection mask RCNN
Summary of software testing cognition
Is it safe to open an account for buying stocks online?