All Projects → YuHongJun → python-training

YuHongJun / python-training

Licence: MIT License
👻 python-training

Programming Languages

HTML
75241 projects
python
139335 projects - #7 most used programming language
Jupyter Notebook
11667 projects

Labels

Projects that are alternatives of or similar to python-training

Multi-Person-Pose-using-Body-Parts
No description or website provided.
Stars: ✭ 41 (+272.73%)
Mutual labels:  training
zwift-workout-file-reference
Reference documentation for the Zwift workout file format
Stars: ✭ 54 (+390.91%)
Mutual labels:  training
DeT
Dataset and Code for the paper "DepthTrack: Unveiling the Power of RGBD Tracking" (ICCV2021), and "Depth-only Object Tracking" (BMVC2021)
Stars: ✭ 39 (+254.55%)
Mutual labels:  training
MaxibonKataKotlin
Maxibon kata for Kotlin Developers. The main goal is to practice property based testing.
Stars: ✭ 42 (+281.82%)
Mutual labels:  training
bigscience
Central place for the engineering/scaling WG: documentation, SLURM scripts and logs, compute environment and data.
Stars: ✭ 261 (+2272.73%)
Mutual labels:  training
Training
Defensive Origins Training Schedule
Stars: ✭ 33 (+200%)
Mutual labels:  training
traindown-dart
Dart (and Flutter) library for the Traindown Markup Language. This is the reference implementation for now. It is first to receive features and fixes.
Stars: ✭ 16 (+45.45%)
Mutual labels:  training
cpluspluscourse
C++ Course Taught at CERN, from Sebastien Ponce (LHCb)
Stars: ✭ 19 (+72.73%)
Mutual labels:  training
Main
Management materials and content
Stars: ✭ 32 (+190.91%)
Mutual labels:  training
Coder
求职信息 组队刷题 经验交流
Stars: ✭ 22 (+100%)
Mutual labels:  training
KataSuperHeroesJetpack
SuperHeroes kata for Jetpack Developers in Kotlin
Stars: ✭ 47 (+327.27%)
Mutual labels:  training
Teaching-Data-Visualisation
Presentation and exercises for the Software Sustainability Institute Research Data Visualisation Workshop (RDVW)
Stars: ✭ 15 (+36.36%)
Mutual labels:  training
teuton
Infrastructure test, mainly useful for sysadmin teachers and making contests
Stars: ✭ 22 (+100%)
Mutual labels:  training
carto-workshop
CARTO training materials
Stars: ✭ 81 (+636.36%)
Mutual labels:  training
gitlab-ci-training
Skoleni Gitlab CI (CI/CD)
Stars: ✭ 18 (+63.64%)
Mutual labels:  training
tensorpeers
p2p peer-to-peer training of tensorflow models
Stars: ✭ 57 (+418.18%)
Mutual labels:  training
workshoppers
Zero to Hero with Node.js Africa Code Guide for JavaScript and Node.js
Stars: ✭ 16 (+45.45%)
Mutual labels:  training
traindown
Public site
Stars: ✭ 35 (+218.18%)
Mutual labels:  training
incubator-training
Apache training
Stars: ✭ 24 (+118.18%)
Mutual labels:  training
championscurriculum
A training curriculum for teaching information security "champions" within small organisations and helping them conduct a basic assessment. (Work in progress)
Stars: ✭ 18 (+63.64%)
Mutual labels:  training

python-training

python-training

create my.cnf for MYSQL

在mac上:MySQL的配置文件默认存放在/etc/my.cnf或者/etc/mysql/my.cnf:

但是mac中在/etc/ 可能不存在my.cnf 或/mysql/my.cnf: 可以自己创建;

我在/etc/ 中创建/mysql/my.cnf, 并输入内容如下:

[client]
default-character-set = utf8

[mysqld]
default-storage-engine = INNODB
character-set-server = utf8
collation-server = utf8_general_ci

命令行:

$ alias mysql=/usr/local/mysql/bin/mysql

$ alias mysqladmin=/usr/local/mysql/bin/mysqladmin

$ mysqladmin -u root -p password new_password

mysql -u root -p

mysql> show variables like '%char%';


+--------------------------+-----------------------------------------------------------+
| Variable_name            | Value                                                     |
+--------------------------+-----------------------------------------------------------+
| character_set_client     | utf8                                                      |
| character_set_connection | utf8                                                      |
| character_set_database   | utf8                                                      |
| character_set_filesystem | binary                                                    |
| character_set_results    | utf8                                                      |
| character_set_server     | utf8                                                      |
| character_set_system     | utf8                                                      |
| character_sets_dir       | /usr/local/mysql-5.7.18-macos10.12-x86_64/share/charsets/ |
+--------------------------+-----------------------------------------------------------+
8 rows in set (0.00 sec)

看到utf8字样就表示编码设置正确

MySql 5.7中添加用户,新建数据库,用户授权,删除用户,修改密码

新建用户

创建test用户,密码是password。

mysql -u root -p

mysql> CREATE USER "www-data"@"localhost" IDENTIFIED BY "www-data"; #本地登录 mysql> CREATE USER "www-data"@"%" IDENTIFIED BY "www-data"; #远程登录 mysql> quit

mysql -u test -p #测试是否创建成功

为用户授权

  1. 登录MYSQL,这里以ROOT身份登录:
mysql -u root -p
  1. 为用户创建一个数据库(testDB):
create database testDB;
create database testDB default charset utf8 collate utf8_general_ci;
  1. 授权test用户拥有testDB数据库的所有权限:

授权格式:grant 权限 on 数据库.* to 用户名@登录主机 identified by “密码”;密码可为空

grant all privileges on testDB.* to "test"@"localhost" identified by "password";
flush privileges; #刷新系统权限表
  1. 指定部分权限给用户:
grant all privileges on testDB.* to "test"@"localhost" identified by "password";

flush privileges; #刷新系统权限表
  1. 删除用户
drop user 用户名@'%';
drop user 'www-data'@'localhost';
  1. 修改指定用户密码
mysql -u root -p
update mysql.user set authentication_string=password(“新密码”) where User="test" and Host="localhost";
flush privileges;
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].