Advertisement
SorielUDC

Complete

Oct 4th, 2018
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.75 KB | None | 0 0
  1. [root@archbang ablive]# pacman -Sy mysql
  2. :: Synchronizing package databases...
  3. core is up to date
  4. extra is up to date
  5. community is up to date
  6. :: There are 2 providers available for mysql:
  7. :: Repository extra
  8. 1) mariadb
  9. :: Repository community
  10. 2) percona-server
  11.  
  12. Enter a number (default=1): 1
  13. resolving dependencies...
  14. looking for conflicting packages...
  15.  
  16. Packages (4) jemalloc-1:5.1.0-1 libmariadbclient-10.1.36-1 mariadb-clients-10.1.36-1 mariadb-10.1.36-1
  17.  
  18. Total Download Size: 11.01 MiB
  19. Total Installed Size: 230.44 MiB
  20.  
  21. :: Proceed with installation? [Y/n] y
  22. :: Retrieving packages...
  23. mariadb-10.1.36-1-x86_64 11.0 MiB 2.65M/s 00:04 [####################################] 100%
  24. (4/4) checking keys in keyring [####################################] 100%
  25. (4/4) checking package integrity [####################################] 100%
  26. (4/4) loading package files [####################################] 100%
  27. (4/4) checking for file conflicts [####################################] 100%
  28. (4/4) checking available disk space [####################################] 100%
  29. :: Processing package changes...
  30. (1/4) installing libmariadbclient [####################################] 100%
  31. (2/4) installing jemalloc [####################################] 100%
  32. Optional dependencies for jemalloc
  33. perl: for jeprof [installed]
  34. (3/4) installing mariadb-clients [####################################] 100%
  35. (4/4) installing mariadb [####################################] 100%
  36. :: You need to initialize the MariaDB data directory prior to starting
  37. the service. This can be done with mysql_install_db command, e.g.:
  38. mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
  39. Optional dependencies for mariadb
  40. galera: for MariaDB cluster with Galera WSREP
  41. perl-dbd-mysql: for mysqlhotcopy, mysql_convert_table_format and mysql_setpermission
  42. :: Running post-transaction hooks...
  43. (1/4) Reloading system manager configuration...
  44. (2/4) Creating system user accounts...
  45. (3/4) Creating temporary files...
  46. (4/4) Arming ConditionNeedsUpdate...
  47. [root@archbang ablive]# mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
  48. Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
  49. 2018-10-03 22:42:41 140259177123776 [Note] /usr/bin/mysqld (mysqld 10.1.36-MariaDB) starting as process 1321 ...
  50. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
  51.  
  52. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: Using mutexes to ref count buffer pool pages
  53. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: The InnoDB memory heap is disabled
  54. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  55. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
  56. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: Compressed tables use zlib 1.2.11
  57. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: Using Linux native AIO
  58. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: Using SSE crc32 instructions
  59. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: Initializing buffer pool, size = 128.0M
  60. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: Completed initialization of buffer pool
  61. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: Highest supported file format is Barracuda.
  62. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: The log sequence number 0 in ibdata file do not match the log sequence number 1600617 in the ib_logfiles!
  63. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: Restoring possible half-written data pages from the doublewrite buffer...
  64. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: 128 rollback segment(s) are active.
  65. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: Waiting for purge to start
  66. 2018-10-03 22:42:41 140259177123776 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.39-83.1 started; log sequence number 1600617
  67. 2018-10-03 22:42:41 140259177123776 [Note] Recovering after a crash using mysql-bin
  68. 2018-10-03 22:42:41 140259177123776 [Note] Starting crash recovery...
  69. 2018-10-03 22:42:41 140259177123776 [Note] Crash recovery finished.
  70. 2018-10-03 22:42:41 140258424748800 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1146: Table 'mysql.gtid_slave_pos' doesn't exist
  71. 2018-10-03 22:42:41 140258642863872 [Note] InnoDB: Dumping buffer pool(s) not yet started
  72. OK
  73. Filling help tables...
  74. 2018-10-03 22:42:44 140547017322432 [Note] /usr/bin/mysqld (mysqld 10.1.36-MariaDB) starting as process 1354 ...
  75. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
  76.  
  77. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: Using mutexes to ref count buffer pool pages
  78. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: The InnoDB memory heap is disabled
  79. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  80. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
  81. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: Compressed tables use zlib 1.2.11
  82. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: Using Linux native AIO
  83. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: Using SSE crc32 instructions
  84. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: Initializing buffer pool, size = 128.0M
  85. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: Completed initialization of buffer pool
  86. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: Highest supported file format is Barracuda.
  87. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: 128 rollback segment(s) are active.
  88. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: Waiting for purge to start
  89. 2018-10-03 22:42:44 140547017322432 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.39-83.1 started; log sequence number 1616717
  90. 2018-10-03 22:42:44 140546483144448 [Note] InnoDB: Dumping buffer pool(s) not yet started
  91. OK
  92. Creating OpenGIS required SP-s...
  93. 2018-10-03 22:42:47 140700812066752 [Note] /usr/bin/mysqld (mysqld 10.1.36-MariaDB) starting as process 1386 ...
  94. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: innodb_empty_free_list_algorithm has been changed to legacy because of small buffer pool size. In order to use backoff, increase buffer pool at least up to 20MB.
  95.  
  96. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: Using mutexes to ref count buffer pool pages
  97. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: The InnoDB memory heap is disabled
  98. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  99. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
  100. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: Compressed tables use zlib 1.2.11
  101. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: Using Linux native AIO
  102. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: Using SSE crc32 instructions
  103. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: Initializing buffer pool, size = 128.0M
  104. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: Completed initialization of buffer pool
  105. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: Highest supported file format is Barracuda.
  106. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: 128 rollback segment(s) are active.
  107. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: Waiting for purge to start
  108. 2018-10-03 22:42:47 140700812066752 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.39-83.1 started; log sequence number 1616727
  109. 2018-10-03 22:42:47 140700277888768 [Note] InnoDB: Dumping buffer pool(s) not yet started
  110. OK
  111.  
  112. To start mysqld at boot time you have to copy
  113. support-files/mysql.server to the right place for your system
  114.  
  115. PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
  116. To do so, start the server, then issue the following commands:
  117.  
  118. '/usr/bin/mysqladmin' -u root password 'new-password'
  119. '/usr/bin/mysqladmin' -u root -h archbang password 'new-password'
  120.  
  121. Alternatively you can run:
  122. '/usr/bin/mysql_secure_installation'
  123.  
  124. which will also give you the option of removing the test
  125. databases and anonymous user created by default. This is
  126. strongly recommended for production servers.
  127.  
  128. See the MariaDB Knowledgebase at http://mariadb.com/kb or the
  129. MySQL manual for more instructions.
  130.  
  131. You can start the MariaDB daemon with:
  132. cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'
  133.  
  134. You can test the MariaDB daemon with mysql-test-run.pl
  135. cd '/usr/mysql-test' ; perl mysql-test-run.pl
  136.  
  137. Please report any problems at http://mariadb.org/jira
  138.  
  139. The latest information about MariaDB is available at http://mariadb.org/.
  140. You can find additional information about the MySQL part at:
  141. http://dev.mysql.com
  142. Consider joining MariaDB's strong and vibrant community:
  143. https://mariadb.org/get-involved/
  144.  
  145. [root@archbang ablive]# systemctl start mariadb
  146. [root@archbang ablive]# mysql_secure_installation
  147.  
  148. NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
  149. SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
  150.  
  151. In order to log into MariaDB to secure it, we'll need the current
  152. password for the root user. If you've just installed MariaDB, and
  153. you haven't set the root password yet, the password will be blank,
  154. so you should just press enter here.
  155.  
  156. Enter current password for root (enter for none):
  157. OK, successfully used password, moving on...
  158.  
  159. Setting the root password ensures that nobody can log into the MariaDB
  160. root user without the proper authorisation.
  161.  
  162. Set root password? [Y/n] y
  163. New password:
  164. Re-enter new password:
  165. Password updated successfully!
  166. Reloading privilege tables..
  167. ... Success!
  168.  
  169.  
  170. By default, a MariaDB installation has an anonymous user, allowing anyone
  171. to log into MariaDB without having to have a user account created for
  172. them. This is intended only for testing, and to make the installation
  173. go a bit smoother. You should remove them before moving into a
  174. production environment.
  175.  
  176. Remove anonymous users? [Y/n] n
  177. ... skipping.
  178.  
  179. Normally, root should only be allowed to connect from 'localhost'. This
  180. ensures that someone cannot guess at the root password from the network.
  181.  
  182. Disallow root login remotely? [Y/n] n
  183. ... skipping.
  184.  
  185. By default, MariaDB comes with a database named 'test' that anyone can
  186. access. This is also intended only for testing, and should be removed
  187. before moving into a production environment.
  188.  
  189. Remove test database and access to it? [Y/n] n
  190. ... skipping.
  191.  
  192. Reloading the privilege tables will ensure that all changes made so far
  193. will take effect immediately.
  194.  
  195. Reload privilege tables now? [Y/n] n
  196. ... skipping.
  197.  
  198. Cleaning up...
  199.  
  200. All done! If you've completed all of the above steps, your MariaDB
  201. installation should now be secure.
  202.  
  203. Thanks for using MariaDB!
  204. [root@archbang ablive]# mysql -u root -p
  205. Enter password:
  206. Welcome to the MariaDB monitor. Commands end with ; or \g.
  207. Your MariaDB connection id is 8
  208. Server version: 10.1.36-MariaDB MariaDB Server
  209.  
  210. Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
  211.  
  212. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  213.  
  214. MariaDB [(none)]> show databases;
  215. +--------------------+
  216. | Database |
  217. +--------------------+
  218. | information_schema |
  219. | mysql |
  220. | performance_schema |
  221. | test |
  222. +--------------------+
  223. 4 rows in set (0.00 sec)
  224.  
  225. MariaDB [(none)]> use information_schema
  226. Database changed
  227. MariaDB [information_schema]> show tables;
  228. +---------------------------------------+
  229. | Tables_in_information_schema |
  230. +---------------------------------------+
  231. | ALL_PLUGINS |
  232. | APPLICABLE_ROLES |
  233. | CHARACTER_SETS |
  234. | COLLATIONS |
  235. | COLLATION_CHARACTER_SET_APPLICABILITY |
  236. | COLUMNS |
  237. | COLUMN_PRIVILEGES |
  238. | ENABLED_ROLES |
  239. | ENGINES |
  240. | EVENTS |
  241. | FILES |
  242. | GLOBAL_STATUS |
  243. | GLOBAL_VARIABLES |
  244. | KEY_CACHES |
  245. | KEY_COLUMN_USAGE |
  246. | PARAMETERS |
  247. | PARTITIONS |
  248. | PLUGINS |
  249. | PROCESSLIST |
  250. | PROFILING |
  251. | REFERENTIAL_CONSTRAINTS |
  252. | ROUTINES |
  253. | SCHEMATA |
  254. | SCHEMA_PRIVILEGES |
  255. | SESSION_STATUS |
  256. | SESSION_VARIABLES |
  257. | STATISTICS |
  258. | SYSTEM_VARIABLES |
  259. | TABLES |
  260. | TABLESPACES |
  261. | TABLE_CONSTRAINTS |
  262. | TABLE_PRIVILEGES |
  263. | TRIGGERS |
  264. | USER_PRIVILEGES |
  265. | VIEWS |
  266. | GEOMETRY_COLUMNS |
  267. | SPATIAL_REF_SYS |
  268. | CLIENT_STATISTICS |
  269. | INDEX_STATISTICS |
  270. | INNODB_SYS_DATAFILES |
  271. | TABLE_STATISTICS |
  272. | INNODB_SYS_TABLESTATS |
  273. | USER_STATISTICS |
  274. | INNODB_SYS_INDEXES |
  275. | XTRADB_RSEG |
  276. | INNODB_CMP_PER_INDEX |
  277. | INNODB_TRX |
  278. | CHANGED_PAGE_BITMAPS |
  279. | INNODB_FT_BEING_DELETED |
  280. | INNODB_LOCK_WAITS |
  281. | INNODB_LOCKS |
  282. | INNODB_TABLESPACES_ENCRYPTION |
  283. | XTRADB_INTERNAL_HASH_TABLES |
  284. | INNODB_SYS_FIELDS |
  285. | INNODB_CMPMEM_RESET |
  286. | INNODB_CMP |
  287. | INNODB_FT_INDEX_TABLE |
  288. | INNODB_SYS_TABLESPACES |
  289. | INNODB_MUTEXES |
  290. | INNODB_BUFFER_PAGE_LRU |
  291. | INNODB_SYS_FOREIGN_COLS |
  292. | INNODB_CMP_RESET |
  293. | INNODB_BUFFER_POOL_STATS |
  294. | INNODB_FT_INDEX_CACHE |
  295. | INNODB_SYS_FOREIGN |
  296. | INNODB_METRICS |
  297. | INNODB_FT_DEFAULT_STOPWORD |
  298. | INNODB_CMPMEM |
  299. | INNODB_SYS_TABLES |
  300. | INNODB_SYS_COLUMNS |
  301. | INNODB_FT_CONFIG |
  302. | INNODB_BUFFER_PAGE |
  303. | INNODB_CMP_PER_INDEX_RESET |
  304. | XTRADB_READ_VIEW |
  305. | INNODB_SYS_SEMAPHORE_WAITS |
  306. | INNODB_CHANGED_PAGES |
  307. | INNODB_FT_DELETED |
  308. | INNODB_TABLESPACES_SCRUBBING |
  309. +---------------------------------------+
  310. 78 rows in set (0.00 sec)
  311.  
  312. MariaDB [information_schema]> select * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME="SCHEMATA";
  313. +---------------+--------------------+------------+----------------------------+------------------+----------------+-------------+-----------+--------------------------+------------------------+-------------------+---------------+--------------------+--------------------+-----------------+--------------+------------+-------+------------+----------------+
  314. | TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME | COLUMN_NAME | ORDINAL_POSITION | COLUMN_DEFAULT | IS_NULLABLE | DATA_TYPE | CHARACTER_MAXIMUM_LENGTH | CHARACTER_OCTET_LENGTH | NUMERIC_PRECISION | NUMERIC_SCALE | DATETIME_PRECISION | CHARACTER_SET_NAME | COLLATION_NAME | COLUMN_TYPE | COLUMN_KEY | EXTRA | PRIVILEGES | COLUMN_COMMENT |
  315. +---------------+--------------------+------------+----------------------------+------------------+----------------+-------------+-----------+--------------------------+------------------------+-------------------+---------------+--------------------+--------------------+-----------------+--------------+------------+-------+------------+----------------+
  316. | def | information_schema | SCHEMATA | CATALOG_NAME | 1 | | NO | varchar | 512 | 1536 | NULL | NULL | NULL | utf8 | utf8_general_ci | varchar(512) | | | select | |
  317. | def | information_schema | SCHEMATA | SCHEMA_NAME | 2 | | NO | varchar | 64 | 192 | NULL | NULL | NULL | utf8 | utf8_general_ci | varchar(64) | | | select | |
  318. | def | information_schema | SCHEMATA | DEFAULT_CHARACTER_SET_NAME | 3 | | NO | varchar | 32 | 96 | NULL | NULL | NULL | utf8 | utf8_general_ci | varchar(32) | | | select | |
  319. | def | information_schema | SCHEMATA | DEFAULT_COLLATION_NAME | 4 | | NO | varchar | 32 | 96 | NULL | NULL | NULL | utf8 | utf8_general_ci | varchar(32) | | | select | |
  320. | def | information_schema | SCHEMATA | SQL_PATH | 5 | NULL | YES | varchar | 512 | 1536 | NULL | NULL | NULL | utf8 | utf8_general_ci | varchar(512) | | | select | |
  321. +---------------+--------------------+------------+----------------------------+------------------+----------------+-------------+-----------+--------------------------+------------------------+-------------------+---------------+--------------------+--------------------+-----------------+--------------+------------+-------+------------+----------------+
  322. 5 rows in set (0.00 sec)
  323.  
  324. MariaDB [information_schema]> exit
  325. Bye
  326. [root@archbang ablive]#
  327. By SV
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement