Advertisement
Guest User

Untitled

a guest
Mar 8th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. [Unit]
  2. Description=start and stop MySQL(MariaDB) Server
  3. After=syslog.target
  4. After=network.target
  5.  
  6.  
  7. [Service]
  8. Type=simple
  9. User=Umariadb
  10. Group=Gmariadb
  11. # Restart=always
  12.  
  13. # PermissionsStartOnly=true
  14. ExecStart=/usr/local/ServerWeb/mariadb/bin/mysqld_safe --user=mysql --ledir=/usr/local/ServerWeb/mariadb/bin --datadir=/usr/local/ServerWeb/mariadb/data
  15. # ExecStop=/usr/bin/vgaoff stop
  16.  
  17. TimeoutSec=300
  18. PrivateTmp=true
  19.  
  20.  
  21. [Install]
  22. WantedBy=multi-user.target
  23.  
  24. systemctl enable mariadb.service
  25.  
  26. sudo /usr/local/ServerWeb/mariadb/bin/mysqld_safe --user=mysql --ledir=/usr/local/ServerWeb/mariadb/bin --datadir=/usr/local/ServerWeb/mariadb/data
  27.  
  28. $ sudo /usr/local/ServerWeb/mariadb/bin/mysqld_safe --user=mysql --ledir=/usr/local/ServerWeb/mariadb/bin --datadir=/usr/local/ServerWeb/mariadb/data
  29. [sudo] password for joseluisbz:
  30. 170308 19:54:07 mysqld_safe Logging to '/usr/local/ServerWeb/mariadb/data/server.err'.
  31.  
  32. 170308 19:54:07 mysqld_safe Starting mysqld daemon with databases from /usr/local/ServerWeb/mariadb/data
  33. 2017-03-08 19:54:07 140588539000704 [Note] /usr/local/ServerWeb/mariadb/bin/mysqld (mysqld 10.1.20-MariaDB) starting as process 4411 ...
  34. 2017-03-08 19:54:07 140588539000704 [Note] InnoDB: Using mutexes to ref count buffer pool pages
  35. 2017-03-08 19:54:07 140588539000704 [Note] InnoDB: The InnoDB memory heap is disabled
  36. 2017-03-08 19:54:07 140588539000704 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
  37. 2017-03-08 19:54:07 140588539000704 [Note] InnoDB: GCC builtin __sync_synchronize() is used for memory barrier
  38. 2017-03-08 19:54:07 140588539000704 [Note] InnoDB: Compressed tables use zlib 1.2.3
  39. 2017-03-08 19:54:07 140588539000704 [Note] InnoDB: Using Linux native AIO
  40. 2017-03-08 19:54:07 140588539000704 [Note] InnoDB: Using SSE crc32 instructions
  41. 2017-03-08 19:54:07 140588539000704 [Note] InnoDB: Initializing buffer pool, size = 128.0M
  42. 2017-03-08 19:54:07 140588539000704 [Note] InnoDB: Completed initialization of buffer pool
  43. 2017-03-08 19:54:07 140588539000704 [Note] InnoDB: Highest supported file format is Barracuda.
  44. 2017-03-08 19:54:07 140588539000704 [Note] InnoDB: 128 rollback segment(s) are active.
  45. 2017-03-08 19:54:07 140588539000704 [Note] InnoDB: Waiting for purge to start
  46. 2017-03-08 19:54:07 140588539000704 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.34-79.1 started; log sequence number 1622938
  47. 2017-03-08 19:54:07 140588539000704 [Note] Plugin 'FEEDBACK' is disabled.
  48. 2017-03-08 19:54:07 140587999135488 [Note] InnoDB: Dumping buffer pool(s) not yet started
  49. 2017-03-08 19:54:07 140588539000704 [Note] Server socket created on IP: '::'.
  50. 2017-03-08 19:54:08 140588539000704 [Note] /usr/local/ServerWeb/mariadb/bin/mysqld: ready for connections.
  51. Version: '10.1.20-MariaDB' socket: '/tmp/mysql.sock' port: 3306 MariaDB Server
  52.  
  53. [joseluisbz@Vxbox-Lnx ~]$ mysql -u root -p
  54. Enter password:
  55. Welcome to the MariaDB monitor. Commands end with ; or g.
  56. Your MariaDB connection id is 2
  57. Server version: 10.1.20-MariaDB MariaDB Server
  58.  
  59. Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
  60.  
  61. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
  62.  
  63. MariaDB [(none)]>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement