標籤:1. 使用者權限相關的函數. 這些函數在接下來的頁面設計中會用到. 主要包括: function user_is_login() function database_contains_author($email, $password) function get_md5_password($password) function user_has_role($role) 1.1
標籤:1. 建立categories管理頁面 主要包含以下幾個頁面: A. index.php, 準備各種變數資料.供展示頁面使用. B. categories.html.php, 顯示categories. C. form.html.php, 用於編緝或添加作者的頁面. 頁面郊果: 2. categories頁面的主要流程 2.1 是否已登入 if (!user_is_login()){
標籤:一、建立使用者 CREATE USER ‘username‘@‘host‘ IDENTIFIED BY ‘password‘; 二、編輯許可權 GRANT ALL ON *.* TO ‘username‘.‘host‘ IDENDIFIED BY ‘password‘; #重新整理許可權 flush privileges; 三、遠端存取1、編輯mysql設定檔 vi /etc/mysql/my.cnf 注釋 bind = 12
標籤:昨天斷電,今早上過來之後發現web異常,上去開啟了nginx、php-fpm、mysql等,發現請求發現異常~ nginx錯誤記錄檔提示*82 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstreamMemcache的請求也異常PHP Notice: MemcachePool::get(): Server 192.168.17.145 (tcp 112
標籤:情境:平時直接用root登入到mysql伺服器上進行SQL語句查詢,當想用python串連mysql時,提示1045, "Access denied for user ‘root‘@‘IP地址‘ (using password: YES)",然後用create user 使用者名稱 identified by ‘密碼‘建立了使用者名稱為自己名字的使用者,再去執行python,提示1004 Access denied for user ‘使用者名稱‘@‘%‘ to
標籤:1、 2、配置master修改/etc/my.cnf增加[mysqld]log-bin = master-binlog-bin-index = master-bin.indexserver-id = 1 3、master建立一個複製使用者CREATE USER repl_user;GRANT REPLICATION SLAVE ON *.* TO repl_user IDENTIFIED BY