- LOCK TEST_USER1
ALTER USER TEST_USER1 ACCOUNT LOCK;
ALTER USER TEST_USER1 ACCOUNT UNLOCK;
- LOCK TEST_USER1
ALTER USER TEST_USER1 ACCOUNT LOCK;
1. windows
mkdir c:\my-shared
echo "test" > test.txt
2. add shared folder in virtual Manager like
shared foldername: shared
windows path: c:\my-shared
access auth: full
3. goto linux vm
$ mkdir ~/wk-shared
$ sudo mount -t vboxsf shared ~/wk-shared
$ ll ~/wk-shared
total 1
-rwxrwxrwx 1 root root 63 Sep 21 14:24 test.txt
service mysql start
sudo mysql -u root
MariaDB [(none)]> show databases
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
4 rows in set (0.001 sec)
MariaDB [(none)]> select Host, User, Password from mysql.user;
+-----------+-------------+----------+
| Host | User | Password |
+-----------+-------------+----------+
| localhost | mariadb.sys | |
| localhost | root | invalid |
| localhost | mysql | invalid |
+-----------+-------------+----------+
3 rows in set (0.001 sec)
mysql -u root mysqlFLUSH PRIVILEGES;ALTER USER 'root'@'localhost' IDENTIFIED BY 'NEW_PASSWORD';FLUSH PRIVILEGES;quit
sudo kill `sudo cat /var/run/mysqld/mysqld.pid`login to gitlab-Postgre-db:
gitlab-rails dbconsolegitlab-psql -d gitlabhq_productionpostgres=# \c dvdrental
You are now connected to database "dvdrental" as user "postgres".
\l = SELECT datname FROM pg_database;
gitlabhq_production=> \d
#list all objects of the db. include table, sequence, and so on.
\d = select * from
gitlabhq_production=> \dt
(\dt + :#show size)
(\dt tablename :#show table columns)
#list all tables of the db
--'テーブル名'に存在する列一覧を取得
select * from information_schema.columns
where table_name='テーブル名' order by ordinal_position;
# ls -l /etc/gitlab/initial_root_password
gitlab-rake "gitlab:password:reset[root]"
$ gitlab-ctl status
# status of services
/# gitlab-rake gitlab:env:info
System information
System:
Proxy: no
Current User: git
Using RVM: no
Ruby Version: 2.7.5p203
Gem Version: 3.1.6
Bundler Version:2.3.15
Rake Version: 13.0.6
Redis Version: 6.2.7
Sidekiq Version:6.4.0
Go Version: unknown
GitLab information
Version: 15.3.3-ee
Revision: 1615d086ad8
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 13.6
URL: http://gitlab.wangxg.com
HTTP Clone URL: http://gitlab.wangxg.com/some-group/some-project.git
SSH Clone URL: git@gitlab.wangxg.com:some-group/some-project.git
Elasticsearch: no
Geo: no
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 14.10.0
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
root@gitlab:/#
$ free -m
total used free shared buff/cache available
Mem: 4931 699 3260 7 971 3992
Swap: 1023 0 1023