久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      mariaDB linux使用技巧

      macbook下,瀏覽器緩存文件的大致路徑
      /private/var/folders/dc/62rbq7yj5qxfhckt65xszl3r0000gn/T/33.jpg

      默認(rèn)情況下,新安裝的 mariadb 的密碼為空,在shell終端直接輸入 mysql 就能登陸數(shù)據(jù)庫。這時使用的是匿名身份。

      第一次登錄可以使用mysql_secure_installation 命令初始化。

      修改數(shù)據(jù)庫用戶的密碼的推薦方式,

        # mysql -uroot -p    2.1 更新 mysql 庫中 user 表的字段:  MariaDB [(none)]> use mysql;    MariaDB [mysql]> UPDATE user SET password=password('newpassword') WHERE user='root';    MariaDB [mysql]> flush privileges;    MariaDB [mysql]> exit;    2.2 或者,使用 set 指令設(shè)置root密碼:  MariaDB [(none)]> SET password for 'root'@'localhost'=password('newpassword');    MariaDB [(none)]> exit;

      如果是忘記了 root 密碼,則需要以跳過授權(quán)的方式啟動 mariadb 來修改密碼。

      mysql的啟動 關(guān)閉 命令

        mysql.server start / stop

      mysql 的 show命令

        show columns from test_table;  show create table test_table;

      新增一個mysql用戶

        mysql -u root -p  >輸入root數(shù)據(jù)庫用戶密碼    2.新增用戶  insert into mysql.user(Host,User,Password) values("localhost","xxx",password("***"));    注釋:xxx為新建用戶名,***為用戶密碼    3.執(zhí)行該句后,還需要刷新權(quán)限表    flush privileges;    4.賦予用戶權(quán)限  grant all on ttt.* to xxx@localhost identified by "***";    注釋:ttt為數(shù)據(jù)的庫名 database name,當(dāng)然你也可以填* 為所有庫, ***為用戶密碼    5.賦予權(quán)限,還需要再刷新權(quán)限表

      MacBook 命令行工具brew不能更新
      這次在MacBook上brew安裝 mariaDB, 提示brew版本太老,需要更新,但是直接用命令 brew update,報錯,提示沒有/usr/local 目錄的寫入權(quán)限,不是這個目錄的owner,
      用sudo brew update, 還是不行,使用命令行的root用戶去更改/usr/local的權(quán)限,和所有者, 用chown, chmod 命令,仍然不行,無法更改,root用戶居然都改不了權(quán)限,怪了,問下google.
      需要用重啟mac, 然后按住Command + r 進(jìn)入恢復(fù)模式,在恢復(fù)模式下打開終端,執(zhí)行命令

        csrutil disable

      然后在正常重啟mac, 使用sudo chmod, sudo chown,就可以更改/usr/local
      的所有者與權(quán)限了。

      為了mac系統(tǒng)的安全,推薦更改成功后,重新進(jìn)入恢復(fù)模式,執(zhí)行命令

        csrutil enable

      限制root用戶的特權(quán)

      node模塊的全局安裝及引用

      全局安裝mysql模塊,

        npm install -g mysql

      然后修改環(huán)境變量
      對于linux

        vim /etc/bashrc  加入一行代碼  export NODE_PATH="/usr/local/lib/node_modules:$NODE_PATH"  接著 :wq 保存  然后 source /etc/bashrc

      對于Mac os

        vim ~/.bash_profile  加入一行代碼  export NODE_PATH="/usr/local/lib/node_modules:$NODE_PATH"  接著 :x 保存  source ~/.bash_profile

      現(xiàn)在再reuqire全局模塊就不會報錯了。

        let mysql = require('mysql');

      這行代碼不會報錯了,如果不想改全局變量,就要require mysql模塊的絕對路徑mac下的node模塊全局路徑,
      /usr/local/lib/node_modules

      https://luojia.me/2015/08/18/%E8%A7%A3%E5%86%B3node%E6%97%A0%E6%B3%95%E8%B0%83%E7%94%A8%E5%85%A8%E5%B1%80%E6%A8%A1%E5%9D%97%E7%9A%84%E9%97%AE%E9%A2%98/

      在瀏覽器端用JS創(chuàng)建和下載文件
      https://www.cnblogs.com/xieshuxin/p/6731608.html
      什么是data URI scheme及如何使用data URI scheme
      https://sjolzy.cn/What-is-the-data-URI-scheme-and-how-to-use-the-data-URI-scheme.html

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號