| *05ea4d71c9a1273ecf3e24e6323f7175ae45c366 || localhost | Zabbix | *6bb4837eb74329105ee4568dda7dc67ed2ca2ad9 |+---------------+---------------+------------------------------------------------------------+Problem:On the client (such as 192.168.1.20) remote connection above the 192.168.1.152 machine MySQL, the connection failed![Email protected] ~]# mysql-udb_ro_hqsb-h 192.168.1.152-pmhxzkhl0802xqsjdbERROR 1130 (HY000): Host ' 192.168.1.20 ' isn't allowed to connect to this MySQL serverSolve:is d
Mysql> Grant all on performance_schema.* to ' testuser ';ERROR 1044 (42000): Access denied for user ' root ' @ ' localhost ' to database ' Performance_schema 'Mysql> Grant all on information_schema.* to ' testuser ';ERROR 1044 (42000): Access denied for user ' root ' @ ' localhost ' to database ' Information_schema 'Mysql> Grant Select on Information_schema.* to ' testuser ';ERROR 1044 (42000): Access denied for user ' root ' @ ' localhost ' to database ' Information_schema 'Mysql> Grant Select
account can issue per hourAn account can initiate the number of query operations per hourThe number of updates an account can issue per hourThe number of update operations that an account can initiate per hourThe number of times an account can connect to the server per hourThe number of times an account can connect to a server per hourThe number of simultaneous connections to the server by a accountAn account can also be connected to the number of servers,#查看权限Show GRANTS for ' testzzq ' @ ' lo
; flush privileges;These three sentences and the second sentence above Grant's effect is also the same, also added a can only from the Class C subnet 192.168.1 connection, the test library has select,insert,update,delete,create,drop operation rights of Test1 users, The password is test. To remove a user's permissions, use the REVOKE statement. The syntax of the revoke is very similar to the grant statement, except that to is substituted by and without the identified by and with GRANT OPTION clau
' test ' @ ' localhost ' for table ' test_1 'Mysql-utest-p123456-e ' select * from Test.test_2 '; Query there's somethingNote: Authorizing a nonexistent table can also be successful, and you can also view the permissions.3.1 Revoke permissionsRevoke all on test.test_2 from [email protected] ' localhost ';Flush privileges;4. Hide library does not allow authorizationInformation_schema This library stores MySQL metadata such as database name or table name, column data type, or access permissions,
monitor.Commands End With; or \g.
Mysql> Delete from mydb.student where id=1;
Query OK, 1 row Affected (0.00 sec)Logging on the server can be successfully removed.View authorizationsmysql>showgrantsfor[emailprotected]; +-------------------------------------------------------------------------------------------------------------- + |grantsfor[emailprotected]
| +-------------------------------------------------------------------------------------------------------------- + |grantusageon*.*to
Actually I just don't understandAndSELECT * FROM Mysql.user\gThe difference: the latter is the permission to all libraries, the former if you want to query the permissions of a single library can use the former!The following two map will be able to understand:650) this.width=650; "style=" Float:none; "title=" 3.png "src=" http://s3.51cto.com/wyfs02/M01/75/00/ Wkiom1ywc0nqwztyaajuoyoxtqu816.jpg "alt=" Wkiom1ywc0nqwztyaajuoyoxtqu816.jpg "/>650) this.width=650; "style=" Float:none; "title=" 4.png "
Authorized login.Basic situation: Certified service number;Main test code: Publicfunction Openoauth () {//gets the code in the callback connection$code = $_get['Code']; //Get Access_token OpenID$json = file_get_contents ("https://api.weixin.qq.com/sns/oauth2/access_token?appid=wx7a5423a6f023716c5secret= 6bb7bstddekxrsa3bdcd296979bfb66967f41code= $code grant_type=authorization_code"); $json=Json_decode ($json); $refresh _token= $jsonRefresh_token;Get the Access_token $json you need through Refre
will be adapted to C + + code: public Boolean Isdebugmode () {ApplicationInfo info = this.getapplicationinfo (); return (0!= (info.flags) applicationinfo.flag_debuggable));} 3.JNI layer Gets the unique ID of the Android device, you can refer to the Java code to adapt the code to C + + code : String id = Settings.Secure.getString (this.mainActivity.getContentResolver (), Settings.Secure.ANDROID_ID); 4. Get the authorization code in meta in manifest, this does not need to be implemented in the
auto-generated Method Stub - exception.printstacktrace (); - } - -}As you can see, we just got Access_token in the first callback, and we need to get more information based on this access_token, such as asking for UserID and UserInfo.1 Private Static Final String Weibo_userid_url = "Https://api.weibo.com/oauth2/get_token_info"; 2 Private Static Final String Weibo_userinfo_url = "Https://api.weibo.com/2/users/show.json";Of course, more information gets the URL in the Sina offici
Java Study Notes 34 (Collection framework 8: comprehensive case: Simulated landlords shuffling and licensing), learning notes shuffling
Rules:
1.54 cards with color
2. The order is disordered. One person is licensed in turn, 17 are licensed, and three are reserved as cards.
3. Card Viewing: print the card in the order of the size of King 2A... 43
Example:
Package demo; import java. util. arrayList; import java. util. collections; import java. util. ha
Based on the first two algorithms, we then integrated the test and successfully tested the random licensing Effect of landlords. Here I tested several operations and it was quite random! Haha:
Code:
# Include HelloWorldScene. h # include SimpleAudioEngine. h # include
# Include
Using namespace cocos2d; using namespace CocosDenshion; CCScene * HelloWorld: scene () {// 'Scene 'is an autorelease object CCScene * scene = CCScene: create
A c ++ Licensing Program-general Linux technology-Linux programming and kernel information. For details, see the following. Enter "bd-h" for help.
The following is the source code (for the code for processing command line parameters, refer to vim ):
# Include
# Include
# Include
# Include
Using namespace std;
# Include
# Include
# Include
Static char program_name [] = "bd ";
# Define THE_VERSION "0.1"
Namespace info {
Enum {WEST = 0, NORTH = 1, E
Introduced
In Laravel, the implementation of login and authorization based on traditional forms has been very simple, but how to meet the licensing requirements of the API scenario? In the API scenario, the user authorization is usually implemented through tokens, rather than the Session state between maintenance requests. The Laravel project now allows you to easily implement the API authorization process with Passport, which allows you to add a comp
, Microphone authorization status detection#importDetection method-(avaudiosessionrecordpermission) recordpermission;Authorization statusavaudiosessionrecordpermissionundetermined,//The user has not been requested permission.Avaudiosessionrecordpermissiondenied,//The user has been requested and has refused permission. avaudiosessionrecordpermissiongranted,//The user has been requested and granted permission.Reference Code__block void (^checkrecordpermission) (void) = ^{avaudiosessionrecordpermis
dbname in the MySQL serverUnbind an expressionThe definition of the data object is the same as aboveMySQL permission expressionpermissions granted to ordinary users for all table crud on the database TestDB: GrantSelectOn testdb.*'General_user'@'%'Grant Insert on TestDB. * To'General_user'@'%'Grant Update on TestDB. * To'General_user'@'%'GrantDeleteOn testdb.* to'General_user'@'%'GrantSelect(Id,name,birth) on testdb.*'General_user'@'%'can be used directly: GrantSelect, INSERT, UPDATE,DeleteOn t
Authorization Basics (only service numbers that are certified to use this feature)
Enter the domain name information for the callback you want to authorize
Through the above 10 steps can be configured to authorize the right to use the authorization.
Then you can use the weiphp authorization Snsapi_userinfo on the top of the screen, and then click on the Authorized Green window to see if it is the window you set, as in the case of the same, it means success.
Articles you may be interest
Small Knowledge Points:The difference between bounds and frame:Bounds: absolute coordinates, with its own coordinate system as the reference, origin (0,0)Frame: relative coordinates, with the parent view's coordinate system as the reference, any of the origin.1. Open the URL http://open.weibo.com/A GET request can be used here, so the URL and parameters can be directly splicedwhen the authorization succeeds, it jumps to the pre-set callback page .PS: Two days ago saw a movie "Taoist Mountain", i
*************************************************************************************************************** ************Author: easywave Time: 2014.06.13Category: Protocol standard-RDP Protocol Brief INTRODUCTION statement: Reprint. Please keep the linkNote: If there is an error, please correct me. These are the journal articles I studied ...*************************************************************************************************************** ************A: A simple introduction to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.